summaryrefslogtreecommitdiffstats
path: root/tests/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common.py')
-rw-r--r--tests/common.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/common.py b/tests/common.py
index b5f5bfc..3c248e1 100644
--- a/tests/common.py
+++ b/tests/common.py
@@ -59,6 +59,15 @@ else:
_bytes = str
try:
+ # Python 2:
_unicode = unicode
except NameError:
+ # Python 3: "unicode" became the "str" type
_unicode = str
+
+try:
+ # Python 2:
+ _long = long
+except NameError:
+ # Python 3: "long" became the "int" type
+ _long = int