diff options
author | Tim Hatch <tim@timhatch.com> | 2014-10-03 23:33:33 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-10-03 23:33:33 -0700 |
commit | dffb41a91d5e948228dabb98c9707d50624c1bd8 (patch) | |
tree | 5b1cf8c9be21a13330f727c29662b3bbb59b9f1a | |
parent | 0c5d403ff8c178744191cd56b3a4b763350ff3a9 (diff) | |
download | pygments-dffb41a91d5e948228dabb98c9707d50624c1bd8.tar.gz |
Python3 compat in test_util
-rw-r--r-- | tests/test_util.py | 4 |
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']) |