Author: Armin Rigo <[email protected]>
Branch:
Changeset: r58519:3e170e65982c
Date: 2012-10-27 22:34 +0200
http://bitbucket.org/pypy/pypy/changeset/3e170e65982c/
Log: Skip this test when running on a version of Python where a "python
-S" cannot import extension modules, like a non-installed version on
Posix. (See the bug report.)
diff --git a/pypy/translator/goal/test2/test_app_main.py
b/pypy/translator/goal/test2/test_app_main.py
--- a/pypy/translator/goal/test2/test_app_main.py
+++ b/pypy/translator/goal/test2/test_app_main.py
@@ -689,6 +689,10 @@
child_out_err.close()
def test_proper_sys_path(self, tmpdir):
+ data = self.run('-c "import _ctypes"', python_flags='-S')
+ if data.startswith('Traceback'):
+ py.test.skip("'python -S' cannot import extension modules: "
+ "see probably http://bugs.python.org/issue586680")
@contextmanager
def chdir_and_unset_pythonpath(new_cwd):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit