Skip to content

Commit 040e9ea

Browse files
committed
allow experimental-options in unittest gate
1 parent 412a167 commit 040e9ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,15 @@ def gate_unittests(args=None, subdir=""):
264264
else:
265265
pre_args = []
266266
post_args = args
267-
mx.command_function("python")(["--python.CatchAllExceptions=true"] + pre_args + test_args + post_args)
267+
mx.command_function("python")(["--experimental-options=true", "--python.CatchAllExceptions=true"] + pre_args + test_args + post_args)
268268
if platform.system() != 'Darwin':
269269
# TODO: re-enable when python3 is available on darwin
270270
mx.log("Running tests with CPython")
271271
mx.run(["python3"] + test_args, nonZeroIsFatal=True)
272272
if platform.system() != 'Darwin' and not pre_args and not post_args and not subdir:
273273
mx.log("Running cpyext tests with opaque FS")
274274
test_args = [_graalpytest_driver, "-v", _test_project + "src/tests/cpyext/"]
275-
mx.command_function("python")(["--python.CatchAllExceptions=true", "--python.OpaqueFilesystem"] + pre_args + test_args + post_args)
275+
mx.command_function("python")(["--experimental-options=true", "--python.CatchAllExceptions=true", "--python.OpaqueFilesystem"] + pre_args + test_args + post_args)
276276

277277

278278
def run_python_unittests(python_binary, args=None, aot_compatible=True, exclude=None):

0 commit comments

Comments
 (0)