Author: Ronan Lamy <ronan.l...@gmail.com>
Branch: 
Changeset: r95504:0df22478e494
Date: 2018-12-16 17:07 +0000
http://bitbucket.org/pypy/pypy/changeset/0df22478e494/

Log:    Skip pyrepl tests on CPython if it's not available

diff --git a/extra_tests/test_pyrepl/conftest.py 
b/extra_tests/test_pyrepl/conftest.py
new file mode 100644
--- /dev/null
+++ b/extra_tests/test_pyrepl/conftest.py
@@ -0,0 +1,8 @@
+import sys
+
+def pytest_ignore_collect(path):
+    if '__pypy__' not in sys.builtin_module_names:
+        try:
+            import pyrepl
+        except ImportError:
+            return True
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to