summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_sftp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_sftp.py b/tests/test_sftp.py
index 2b86dec3..b7ace8e2 100755
--- a/tests/test_sftp.py
+++ b/tests/test_sftp.py
@@ -289,7 +289,7 @@ class SFTPTest (unittest.TestCase):
try:
sftp.rename(FOLDER + '/a', FOLDER + '/b')
self.assertTrue(False, 'no exception when rename-ing onto existing file')
- except OSError:
+ except (OSError, IOError):
pass
# now check with the posix_rename