From 7cae87ca7b0a3a7ce497cbd335c8ec82fe680476 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 6 Sep 2006 06:51:57 +0000 Subject: Patch #1550800: make exec a function. --- Lib/test/test_codeop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/test_codeop.py') diff --git a/Lib/test/test_codeop.py b/Lib/test/test_codeop.py index 5d06f2c320..38a192b387 100644 --- a/Lib/test/test_codeop.py +++ b/Lib/test/test_codeop.py @@ -29,8 +29,8 @@ class CodeopTests(unittest.TestCase): saved_stdout = sys.stdout sys.stdout = cStringIO.StringIO() try: - exec code in d - exec compile(str,"","single") in r + exec(code, d) + exec(compile(str,"","single"), r) finally: sys.stdout = saved_stdout elif symbol == 'eval': -- cgit v1.2.1