From a0f10d431548f956346a35a6facf8a9d2b75b1cb Mon Sep 17 00:00:00 2001 From: Tim Hatch Date: Tue, 14 Oct 2014 11:17:49 -0700 Subject: Test fixes for Python3 --- tests/test_unistring.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_unistring.py b/tests/test_unistring.py index afc8ef56..a8791e0c 100644 --- a/tests/test_unistring.py +++ b/tests/test_unistring.py @@ -20,7 +20,7 @@ class UnistringTest(unittest.TestCase): s = getattr(uni, cat) if s == '': # Probably Cs on Jython continue - print cat, repr(s) + print("%s %r" % (cat, s)) re.compile('[%s]' % s) def _cats_that_match(self, c): @@ -41,7 +41,7 @@ class UnistringTest(unittest.TestCase): c = unichr(o) if o > 0xd800 and o <= 0xdfff and not uni.Cs: continue # Bah, Jython. - print hex(o) + print(hex(o)) cats = self._cats_that_match(c) self.assertEqual(len(cats), 1, "%d (%s): %s" % (o, c, cats)) -- cgit v1.2.1