Commit 5d1d8bdd authored by Stefan Behnel's avatar Stefan Behnel

Disable refnanny in PyPy since it otherwise risks to access partly initialised...

Disable refnanny in PyPy since it otherwise risks to access partly initialised objects, e.g. tuples.
parent 81013a59
...@@ -1988,6 +1988,11 @@ def runtests(options, cmd_args, coverage=None): ...@@ -1988,6 +1988,11 @@ def runtests(options, cmd_args, coverage=None):
compiler_default_options['gdb_debug'] = True compiler_default_options['gdb_debug'] = True
compiler_default_options['output_dir'] = os.getcwd() compiler_default_options['output_dir'] = os.getcwd()
if IS_PYPY:
if options.with_refnanny:
sys.stderr.write("Disabling refnanny in PyPy\n")
options.with_refnanny = False
if options.with_refnanny: if options.with_refnanny:
from pyximport.pyxbuild import pyx_to_dll from pyximport.pyxbuild import pyx_to_dll
libpath = pyx_to_dll(os.path.join("Cython", "Runtime", "refnanny.pyx"), libpath = pyx_to_dll(os.path.join("Cython", "Runtime", "refnanny.pyx"),
......
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