From 96bd56b60f6531ba369d152581af72ef28d62082 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Mon, 4 Jul 2016 13:57:37 +0100 Subject: Don't try comparing the 'asbytes' method that recent versions of Paramiko add to their SFTPAttributes --- fs/tests/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/tests/__init__.py b/fs/tests/__init__.py index 2d9625d..69e4bba 100644 --- a/fs/tests/__init__.py +++ b/fs/tests/__init__.py @@ -531,7 +531,8 @@ class FSTestCases(object): self.fs.setcontents("info.txt", test_str) info = self.fs.getinfo("info.txt") for k, v in info.iteritems(): - self.assertEqual(self.fs.getinfokeys('info.txt', k), {k: v}) + if not (k == 'asbytes' and callable(v)): + self.assertEqual(self.fs.getinfokeys('info.txt', k), {k: v}) test_info = {} if 'modified_time' in info: -- cgit v1.2.1