Skip to content

Commit 66ac52c

Browse files
committed
fix running the tagged unittests
1 parent 9aa1309 commit 66ac52c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,13 @@ 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"):
408-
run_python_unittests(python_gvm(), args=["--python.WithThread=true"], paths=["test_tagged_unittests.py"])
407+
with set_env(ENABLE_CPYTHON_TAGGED_UNITTESTS="true", ENABLE_THREADED_GRAALPYTEST="true", GRAAL_PYTHONHOME=_dev_pythonhome()):
408+
# the tagged unittests must ron in the dev_pythonhome and using
409+
# 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"])
409414

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

0 commit comments

Comments
 (0)