summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Scheller <github@loowis.durge.org>2016-07-04 13:57:37 +0100
committerAndrew Scheller <github@loowis.durge.org>2016-07-04 13:57:37 +0100
commit96bd56b60f6531ba369d152581af72ef28d62082 (patch)
tree92b7d568afc030d29ddd4251ddac3c8d55252ab5
parentf5ba0d6749c757ad86b767998f5a64a2109e86c5 (diff)
downloadpyfilesystem-git-96bd56b60f6531ba369d152581af72ef28d62082.tar.gz
Don't try comparing the 'asbytes' method that recent versions of Paramiko
add to their SFTPAttributes
-rw-r--r--fs/tests/__init__.py3
1 files changed, 2 insertions, 1 deletions
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: