From b9ab302dd7aff3ecbbbc7ffe1ef2ef0bf4956a5a Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Wed, 28 Sep 2011 17:55:54 -0300 Subject: Fixed tests to work with python3.x and python2.x --- tests/py3kcompat.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/py3kcompat.py') 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 -- cgit v1.2.3