summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2014-10-14 11:17:49 -0700
committerTim Hatch <tim@timhatch.com>2014-10-14 11:17:49 -0700
commita0f10d431548f956346a35a6facf8a9d2b75b1cb (patch)
treec190134ed11589eb78ec58b3239979a844fc77c6 /tests
parent23d09c9458ba2814e580a0c8ebbc2af69d9c64b7 (diff)
downloadpygments-a0f10d431548f956346a35a6facf8a9d2b75b1cb.tar.gz
Test fixes for Python3
Diffstat (limited to 'tests')
-rw-r--r--tests/test_unistring.py4
1 files 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))