Author: Manuel Jacob <m...@manueljacob.de> Branch: py3.3 Changeset: r82561:0f700cec0352 Date: 2016-02-26 13:28 +0100 http://bitbucket.org/pypy/pypy/changeset/0f700cec0352/
Log: Preimport module to reduce stack depth. This test file passes if run in isolation. However, if run in conjunction with test_greenlet.py, it fails with a "maximum recursion depth exceeded" RuntimeError because using greenlets untranslated on top of CPython results in the recursion counter being off. This turned out to be too hard too fix, so instead I changed the subsequent test to use fewer stack frames. diff --git a/pypy/module/test_lib_pypy/test_os_wait.py b/pypy/module/test_lib_pypy/test_os_wait.py --- a/pypy/module/test_lib_pypy/test_os_wait.py +++ b/pypy/module/test_lib_pypy/test_os_wait.py @@ -17,6 +17,7 @@ if not hasattr(os, "fork"): py.test.skip("Need fork() to test wait3/wait4()") rebuild.rebuild_one('resource.ctc.py') + cls.space.appexec([], "(): import ctypes") cls.w__pypy_wait = import_lib_pypy( cls.space, '_pypy_wait') _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit