shutil.copy(cfuncs_file, self.cfuncs_destfile + '.c')
compiler = ccompiler.new_compiler()
-- compiler.compile(['cfuncs.c'], debug=True)
++ compiler.compile(['cfuncs.c'], debug=True, extra_postargs=['-fPIC'])
opts = dict(
test_directory=self.tempdir,
if trace_code:
tracer = trace.Trace(count=False, trace=True, outfile=sys.stderr,
ignoredirs=[sys.prefix, sys.exec_prefix])
- tracer.runfunc(_main)
+ tracer.runfunc(runtests)
else:
- runtests()
- _main()
-
-main()
++ runtests()
except Exception:
pass
-# TODO: Re-enable once they're more robust.
-include_debugger = sys.version_info[:2] >= (2, 5) and False
++
+include_debugger = sys.version_info[:2] > (2, 5)
def collect_unittests(path, module_prefix, suite, selectors):
def file_matches(filename):