Skip to content

Commit 8caf99f

Browse files
committed
Catch all exceptions in try-except during unittests.
1 parent 53bcc63 commit 8caf99f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def graalpython_gate_runner(args, tasks):
342342
with Task('GraalPython Python tests', tasks, tags=[GraalPythonTags.unittest]) as task:
343343
if task:
344344
test_args = [_graalpytest_driver, "-v", _test_project + "src/tests/"]
345-
mx.command_function("python")(test_args)
345+
mx.command_function("python")(["--python.CatchAllExceptions=true"] + test_args)
346346
if platform.system() != 'Darwin':
347347
# TODO: re-enable when python3 is available on darwin
348348
mx.log("Running tests with CPython")

0 commit comments

Comments
 (0)