Skip to content

Commit 7e1cf28

Browse files
committed
Increase timing tolerance in test_run_with_shell_timeout_and_capture_output
1 parent 5515c6e commit 7e1cf28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graalpython/lib-python/3/test/test_subprocess.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1592,7 +1592,8 @@ def test_run_with_shell_timeout_and_capture_output(self):
15921592
stacks = traceback.format_exc() # assertRaises doesn't give this.
15931593
else:
15941594
self.fail("TimeoutExpired not raised.")
1595-
self.assertLess(after_secs - before_secs, 1.5,
1595+
# GraalVM change: increase the timing tolerance
1596+
self.assertLess(after_secs - before_secs, 3.0,
15961597
msg="TimeoutExpired was delayed! Bad traceback:\n```\n"
15971598
f"{stacks}```")
15981599

0 commit comments

Comments
 (0)