Commit 5639991c authored by Stefan Behnel's avatar Stefan Behnel

Disable CPython-only feature in test runner for PyPy.

parent 3ebc1a6c
......@@ -2149,8 +2149,10 @@ def runtests(options, cmd_args, coverage=None):
pyximport.install(pyimport=True, build_dir=os.path.join(WORKDIR, '_pyximport'),
load_py_module_on_import_failure=True, inplace=True)
import gc
gc.set_debug(gc.DEBUG_UNCOLLECTABLE)
try:
gc.set_debug(gc.DEBUG_UNCOLLECTABLE)
except AttributeError:
pass # not available on PyPy
result = test_runner.run(test_suite)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment