Author: Matti Picus <[email protected]>
Branch: py3.5
Changeset: r93697:7753262007a0
Date: 2018-01-22 20:51 +0200
http://bitbucket.org/pypy/pypy/changeset/7753262007a0/

Log:    make lib-python tests actually run even if faulthandler is a pure
        python stub

diff --git a/lib-python/conftest.py b/lib-python/conftest.py
--- a/lib-python/conftest.py
+++ b/lib-python/conftest.py
@@ -62,7 +62,7 @@
         self.basename = basename
         self._usemodules = usemodules.split() + [
             '_socket', 'binascii', 'time',
-            'select', 'signal', 'faulthandler']
+            'select', 'signal', ]
         if not sys.platform == 'win32':
             self._usemodules.extend(['_posixsubprocess', 'fcntl'])
         self._compiler = compiler
diff --git a/lib_pypy/faulthandler.py b/lib_pypy/faulthandler.py
--- a/lib_pypy/faulthandler.py
+++ b/lib_pypy/faulthandler.py
@@ -1,3 +1,6 @@
 # This is only imported for platforms where the built-in faulthandler module 
is not 
 # available.  It provides no function at all so far, but it is enough to start 
the
-# CPython test suite.
\ No newline at end of file
+# CPython test suite.
+
+def enable(*args, **kwargs):
+    pass
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to