Skip to content

Commit 96bd56b

Browse files
committed
Don't try comparing the 'asbytes' method that recent versions of Paramiko
add to their SFTPAttributes
1 parent f5ba0d6 commit 96bd56b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

fs/tests/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,8 @@ def test_infokeys(self):
531531
self.fs.setcontents("info.txt", test_str)
532532
info = self.fs.getinfo("info.txt")
533533
for k, v in info.iteritems():
534-
self.assertEqual(self.fs.getinfokeys('info.txt', k), {k: v})
534+
if not (k == 'asbytes' and callable(v)):
535+
self.assertEqual(self.fs.getinfokeys('info.txt', k), {k: v})
535536

536537
test_info = {}
537538
if 'modified_time' in info:

0 commit comments

Comments
 (0)