diff options
author | John Ehresman <jpe@wingware.com> | 2010-04-15 18:00:51 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2010-04-16 13:02:42 -0400 |
commit | c2327f2d474f6311dab4a1ff85ddc91601941082 (patch) | |
tree | f7166ce804fbe51e66869d1017c53822cc3b743d | |
parent | 626f66f7dac93e53b8cab75cc63b5283c628c490 (diff) | |
download | pygobject-c2327f2d474f6311dab4a1ff85ddc91601941082.tar.gz pygobject-c2327f2d474f6311dab4a1ff85ddc91601941082.tar.xz pygobject-c2327f2d474f6311dab4a1ff85ddc91601941082.zip |
Common _bytes & _unicode names
-rw-r--r-- | tests/common.py | 10 |
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 |