Author: Ronan Lamy <[email protected]>
Branch: py3k
Changeset: r87361:9625a7c1b613
Date: 2016-09-24 16:58 +0100
http://bitbucket.org/pypy/pypy/changeset/9625a7c1b613/

Log:    cpyext is required to actually test _imp.load_dynamic().

        Disable check for cpyext when running with -A on CPython.

diff --git a/pypy/module/imp/test/test_app.py b/pypy/module/imp/test/test_app.py
--- a/pypy/module/imp/test/test_app.py
+++ b/pypy/module/imp/test/test_app.py
@@ -3,8 +3,10 @@
 
 
 class AppTestImpModule:
+    # cpyext is required for _imp.load_dynamic()
     spaceconfig = {
-        'usemodules': ['binascii', 'imp', 'itertools', 'time', 'struct'],
+        'usemodules': [
+            'binascii', 'imp', 'itertools', 'time', 'struct', 'cpyext'],
     }
 
     def setup_class(cls):
diff --git a/pypy/tool/pytest/apptest.py b/pypy/tool/pytest/apptest.py
--- a/pypy/tool/pytest/apptest.py
+++ b/pypy/tool/pytest/apptest.py
@@ -141,6 +141,9 @@
             # They may be extension modules on CPython
             name = None
             for name in missing.copy():
+                if name == 'cpyext':
+                    missing.remove(name)
+                    continue
                 try:
                     __import__(name)
                 except ImportError:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to