diff options
author | David Malcolm <dmalcolm@redhat.com> | 2010-04-16 12:57:15 -0400 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2010-04-16 13:02:42 -0400 |
commit | 15c3b04f4257fef54ca5f7ab60012b4936d672a3 (patch) | |
tree | 7681289908d6b6c4cca916fee6d61d2c2f649909 /tests/common.py | |
parent | cecafa7e4809c8c2bfa77446beea8beb3a51d8dc (diff) | |
download | pygobject-15c3b04f4257fef54ca5f7ab60012b4936d672a3.tar.gz pygobject-15c3b04f4257fef54ca5f7ab60012b4936d672a3.tar.xz pygobject-15c3b04f4257fef54ca5f7ab60012b4936d672a3.zip |
Fix various selftests when building against python 3.1
Diffstat (limited to 'tests/common.py')
-rw-r--r-- | tests/common.py | 9 |
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 |