aboutsummaryrefslogtreecommitdiffstats
path: root/tests/py3kcompat.py
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-09-28 17:55:54 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:18:18 -0300
commitb9ab302dd7aff3ecbbbc7ffe1ef2ef0bf4956a5a (patch)
treeb2c62e3ae790b7c5a70f7308282ec2975aa168a2 /tests/py3kcompat.py
parent6b21c2fa5eeb6a7c7b6533f1c966a47d8ef07e69 (diff)
Fixed tests to work with python3.x and python2.x
Diffstat (limited to 'tests/py3kcompat.py')
-rw-r--r--tests/py3kcompat.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/py3kcompat.py b/tests/py3kcompat.py
index afa951027..644eec3ee 100644
--- a/tests/py3kcompat.py
+++ b/tests/py3kcompat.py
@@ -34,8 +34,16 @@ if IS_PY3K:
def b(s):
return bytes(s, "UTF8")
+ def l(n):
+ return n
+
+ long = int
else:
def b(s):
return s
+ def l(n):
+ return long(n)
+ unicode = unicode
+ long = long