Skip to content

Commit b32a481

Browse files
committed
slightly clearer code for running the tagged unittests
1 parent 4929e7d commit b32a481

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -404,13 +404,17 @@ def graalpython_gate_runner(args, tasks):
404404

405405
with Task('GraalPython Python tests', tasks, tags=[GraalPythonTags.tagged]) as task:
406406
if task:
407-
with set_env(ENABLE_CPYTHON_TAGGED_UNITTESTS="true", ENABLE_THREADED_GRAALPYTEST="true", GRAAL_PYTHONHOME=_dev_pythonhome()):
407+
with set_env(ENABLE_CPYTHON_TAGGED_UNITTESTS="true", ENABLE_THREADED_GRAALPYTEST="true"):
408408
# the tagged unittests must ron in the dev_pythonhome and using
409409
# the dev CAPI, because that's where the tags are
410-
run_python_unittests(python_gvm(),
411-
args=["--python.WithThread=true",
412-
"--python.CAPI=" + mx.dependency("com.oracle.graal.python.cext").get_output_root()],
413-
paths=["test_tagged_unittests.py"])
410+
with _dev_pythonhome_context():
411+
run_python_unittests(
412+
python_gvm(),
413+
args=["-v",
414+
"--python.WithThread=true",
415+
"--python.CAPI=" + mx.dependency("com.oracle.graal.python.cext").get_output_root()],
416+
paths=["test_tagged_unittests.py"]
417+
)
414418

415419
# Unittests on SVM
416420
with Task('GraalPython tests on SVM', tasks, tags=[GraalPythonTags.svmunit]) as task:

0 commit comments

Comments
 (0)