From fa412675fc003f2540b8f3dc63894fcf9bf91af3 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 24 May 2011 18:28:05 -0500 Subject: [PATCH] use py.builtin.exec_ --- testing/test_assertrewrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_assertrewrite.py b/testing/test_assertrewrite.py index df6620d11..1d1f04f97 100644 --- a/testing/test_assertrewrite.py +++ b/testing/test_assertrewrite.py @@ -29,7 +29,7 @@ def getmsg(f, extra_ns=None, must_pass=False): ns = {} if extra_ns is not None: ns.update(extra_ns) - exec code in ns + py.builtin.exec_(code, ns) func = ns[f.__name__] try: func()