diff options
author | Hood Chatham <roberthoodchatham@gmail.com> | 2024-12-12 01:11:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-12 01:11:00 (GMT) |
commit | 41f29e5d16c314790559e563ce5ca0334fcd54df (patch) | |
tree | e157825bf153e5b8ed761300a753b1d5411a40eb /Lib/test/test_time.py | |
parent | c84928ed6de105696be24859e03f3ab27e11daf6 (diff) | |
download | cpython-41f29e5d16c314790559e563ce5ca0334fcd54df.zip cpython-41f29e5d16c314790559e563ce5ca0334fcd54df.tar.gz cpython-41f29e5d16c314790559e563ce5ca0334fcd54df.tar.bz2 |
gh-127146: Some expected failures in Emscripten time tests (#127843)
Disables two tests in the test_time suite, and adjusts test_os to reflect
precision limits in Emscripten.
Diffstat (limited to 'Lib/test/test_time.py')
-rw-r--r-- | Lib/test/test_time.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index d368f08..9239830 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -116,6 +116,7 @@ class TimeTestCase(unittest.TestCase): 'need time.pthread_getcpuclockid()') @unittest.skipUnless(hasattr(time, 'clock_gettime'), 'need time.clock_gettime()') + @unittest.skipIf(support.is_emscripten, "Fails to find clock") def test_pthread_getcpuclockid(self): clk_id = time.pthread_getcpuclockid(threading.get_ident()) self.assertTrue(type(clk_id) is int) @@ -539,6 +540,9 @@ class TimeTestCase(unittest.TestCase): @unittest.skipIf( support.is_wasi, "process_time not available on WASI" ) + @unittest.skipIf( + support.is_emscripten, "process_time present but doesn't exclude sleep" + ) def test_process_time(self): # process_time() should not include time spend during a sleep start = time.process_time() |