diff options
author | Yesudeep Mangalapilly <yesudeep@gmail.com> | 2011-08-11 01:48:25 +0530 |
---|---|---|
committer | Yesudeep Mangalapilly <yesudeep@gmail.com> | 2011-08-11 01:48:25 +0530 |
commit | 5802431960ed2904db5f8cbcb2e318e6f2d4c792 (patch) | |
tree | 9ac0fef8c58d8a5def3e967ff11c6d8925ec903a /tests/test_varblock.py | |
parent | fd1ec36f68eb15f86b3afcad8371ff77b653363a (diff) | |
download | rsa-5802431960ed2904db5f8cbcb2e318e6f2d4c792.tar.gz |
Tests are now functional (only running without syntax errors) on Python 3 too.
Diffstat (limited to 'tests/test_varblock.py')
-rw-r--r-- | tests/test_varblock.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_varblock.py b/tests/test_varblock.py index d8addb4..6195258 100644 --- a/tests/test_varblock.py +++ b/tests/test_varblock.py @@ -1,6 +1,9 @@ '''Tests varblock operations.''' -from StringIO import StringIO +try: + from StringIO import StringIO +except ImportError: + from io import StringIO import unittest import rsa |