summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'])