diff options
author | Mika Pflüger <Mika Pflüger mika@mikapflueger.de> | 2015-02-01 21:40:47 +0100 |
---|---|---|
committer | Mika Pflüger <Mika Pflüger mika@mikapflueger.de> | 2015-02-01 21:40:47 +0100 |
commit | 57394f5199ff75abc87b0373e18be2102540d50d (patch) | |
tree | e8067cbe345e564f5690c9b5d9455d879ba217e9 /tests | |
parent | 65fb0980d01d928e60c246d361954b961296e67f (diff) |
Add IOError in posix-rename@openssh.com test for python 2 support.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_sftp.py | 2 |
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 |