Skip to content

Commit 131674d

Browse files
committed
Fix hpy coverage
1 parent 5fc5982 commit 131674d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,11 +1106,12 @@ def run_python_unittests(python_binary, args=None, paths=None, exclude=None, env
11061106
args += ['--ignore', file]
11071107

11081108
if is_collecting_coverage() and mx_gate.get_jacoco_agent_args():
1109-
# jacoco only dumps the data on exit, and when we run all our unittests
1110-
# at once it generates so much data we run out of heap space
1111-
args.append('--separate-workers')
11121109
with open(python_binary, "r") as f:
11131110
assert f.read(9) == "#!/bin/sh"
1111+
if not use_pytest:
1112+
# jacoco only dumps the data on exit, and when we run all our unittests
1113+
# at once it generates so much data we run out of heap space
1114+
args.append('--separate-workers')
11141115

11151116
if report:
11161117
reportfile = None

0 commit comments

Comments
 (0)