Author: Manuel Jacob <[email protected]>
Branch: py3k
Changeset: r78603:3861ef3a5b57
Date: 2015-07-19 16:55 +0200
http://bitbucket.org/pypy/pypy/changeset/3861ef3a5b57/
Log: Fix this test to work on Python 2.7.6.
diff --git a/pypy/module/imp/test/test_import.py
b/pypy/module/imp/test/test_import.py
--- a/pypy/module/imp/test/test_import.py
+++ b/pypy/module/imp/test/test_import.py
@@ -1253,6 +1253,9 @@
def teardown_class(cls):
_teardown(cls.space, cls.w_saved_modules)
+ def w_exec_(self, cmd, ns):
+ exec(cmd, ns)
+
def test_meta_path(self):
tried_imports = []
class Importer(object):
@@ -1449,7 +1452,7 @@
import sys, types
sys.meta_path.append(ImportHook())
try:
- exec("from meta_path_2_pseudo_module import *", {})
+ self.exec_("from meta_path_2_pseudo_module import *", {})
finally:
sys.meta_path.pop()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit