summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Ehresman <jpe@wingware.com>2010-04-15 18:00:51 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2010-04-16 13:02:42 -0400
commitc2327f2d474f6311dab4a1ff85ddc91601941082 (patch)
treef7166ce804fbe51e66869d1017c53822cc3b743d
parent626f66f7dac93e53b8cab75cc63b5283c628c490 (diff)
downloadpygobject-c2327f2d474f6311dab4a1ff85ddc91601941082.tar.gz
pygobject-c2327f2d474f6311dab4a1ff85ddc91601941082.tar.xz
pygobject-c2327f2d474f6311dab4a1ff85ddc91601941082.zip
Common _bytes & _unicode names
-rw-r--r--tests/common.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/common.py b/tests/common.py
index ff30ec1..bd7951c 100644
--- a/tests/common.py
+++ b/tests/common.py
@@ -48,3 +48,13 @@ def importModule(module, directory, name=None):
raise AssertionError('module %s imported from wrong location. Expected %s, got %s' % (
module, expected, current))
return obj
+
+try:
+ _bytes = bytes
+except NameError:
+ _bytes = str
+
+try:
+ _unicode = unicode
+except NameError:
+ _unicode = str