summaryrefslogtreecommitdiff
path: root/tests/test_varblock.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_varblock.py')
-rw-r--r--tests/test_varblock.py5
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