From fb043c355e44b7752df12ef152e509f80a06e128 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 7 Jul 2011 09:27:40 -0500 Subject: [PATCH] use py.builtin.exec_ --- _pytest/assertion/rewrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pytest/assertion/rewrite.py b/_pytest/assertion/rewrite.py index 612dc8d35..43be4f696 100644 --- a/_pytest/assertion/rewrite.py +++ b/_pytest/assertion/rewrite.py @@ -109,7 +109,7 @@ class AssertionRewritingHook(object): mod.__file__ = co.co_filename # Normally, this attribute is 3.2+. mod.__cached__ = pyc - exec co in mod.__dict__ + py.builtin.exec_(co, mod.__dict__) except: del sys.modules[name] raise