summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2014-10-03 23:33:33 -0700
committerTim Hatch <tim@timhatch.com>2014-10-03 23:33:33 -0700
commitdffb41a91d5e948228dabb98c9707d50624c1bd8 (patch)
tree5b1cf8c9be21a13330f727c29662b3bbb59b9f1a
parent0c5d403ff8c178744191cd56b3a4b763350ff3a9 (diff)
downloadpygments-dffb41a91d5e948228dabb98c9707d50624c1bd8.tar.gz
Python3 compat in test_util
-rw-r--r--tests/test_util.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_util.py b/tests/test_util.py
index 2581be0b..6aee2c26 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -137,9 +137,7 @@ class UtilTest(unittest.TestCase):
def test_format_lines(self):
lst = ['cat', 'dog']
output = util.format_lines('var', lst)
- print output
d = {}
- exec output in d
- print d['var']
+ exec(output, d)
self.assertTrue(isinstance(d['var'], tuple))
self.assertEquals(('cat', 'dog'), d['var'])