print("executing with", argv)
pref_file.truncate(0)
pref_file.write(prefs.as_file)
pref_file.flush()
success.append(pytest.main(argv, plugins=[pref_plugin]) == 0)
// if "codegen_independent" in test_in_parallel:
// multiprocess._instantiate_plugins.remove(OurDoctestPlugin)
clear_caches()
After Change
// Some doctests do actually use code generation, use numpy for that
prefs["codegen.target"] = "numpy"
argv = make_argv(dirnames, doctests=True)
if "codegen_independent" in test_in_parallel:
argv.extend(multiprocess_arguments)
success.append(pytest.main(argv, plugins=[pref_plugin]) == 0)
print("Running tests that do not use code generation")
argv = make_argv(dirnames, "codegen_independent")