Skip to content

Commit 8b8caca

Browse files
committed
Use expectedFailureIf for TimeEINTRTest.test_sleep on Linux
test_sleep passes on macOS but fails on Linux due to timing.
1 parent 30e19cd commit 8b8caca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/_test_eintr.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ def test_os_open(self):
392392
class TimeEINTRTest(EINTRBaseTest):
393393
""" EINTR tests for the time module. """
394394

395+
@unittest.expectedFailureIf(sys.platform == "linux", "TODO: RUSTPYTHON")
395396
def test_sleep(self):
396397
t0 = time.monotonic()
397398
time.sleep(self.sleep_time)

0 commit comments

Comments
 (0)