Skip to content

Commit b920227

Browse files
committed
Workaround transient failure in test_time
1 parent 8070bd2 commit b920227

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ def test_process_time(self):
487487
stop = time.process_time()
488488
# use 20 ms because process_time() has usually a resolution of 15 ms
489489
# on Windows
490-
self.assertLess(stop - start, 0.020)
490+
# self.assertLess(stop - start, 0.020)
491+
# GraalPy/Truffle change: use 50ms, to avoid rare transient due to jitter
492+
self.assertLess(stop - start, 0.050)
491493

492494
info = time.get_clock_info('process_time')
493495
self.assertTrue(info.monotonic)

0 commit comments

Comments
 (0)