diff options
author | Michael Williamson <mike@zwobble.org> | 2013-01-05 00:15:26 +0000 |
---|---|---|
committer | Michael Williamson <mike@zwobble.org> | 2013-01-05 00:15:26 +0000 |
commit | 08109136b4217b3fc620436819f4c92434189955 (patch) | |
tree | 66f53554fbb0a1def66bdb8dcdfd453cbd620d7b /tests/test_sftp.py | |
parent | 0b6aebb8a95d44102968a3e0caf94cd234369e5d (diff) |
Replace useless version check with import from __future__
Diffstat (limited to 'tests/test_sftp.py')
-rwxr-xr-x | tests/test_sftp.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_sftp.py b/tests/test_sftp.py index 7ce3e68c..f95da69c 100755 --- a/tests/test_sftp.py +++ b/tests/test_sftp.py @@ -23,6 +23,8 @@ a real actual sftp server is contacted, and a new folder is created there to do test file operations in (so no existing files will be harmed). """ +from __future__ import with_statement + from binascii import hexlify import logging import os @@ -192,10 +194,6 @@ class SFTPTest (unittest.TestCase): """ verify that an opened file can be used as a context manager """ - major, minor, micro, releaselevel, serial = sys.version_info - if (major, minor) <= (2, 5): - return - try: with sftp.open(FOLDER + '/duck.txt', 'w') as f: f.write(ARTICLE) |