diff --git a/conftest.py b/conftest.py index 63e855778a..81d143eb7a 100644 --- a/conftest.py +++ b/conftest.py @@ -201,7 +201,9 @@ def decoupler(item, m): env_vars['DEVITO_DECOUPLER_WORKERS'] = str(m) testname = get_testname(item) - call = ["pytest", "--no-summary", "-s", "--runxfail", testname] + + pyversion = sys.executable + call = [pyversion, "-m", "pytest", "--no-summary", "-s", "--runxfail", testname] return set_run_reset(env_vars, call)