Skip to content

Commit 679d963

Browse files
GH-66285: skip asyncio fork tests for platforms without md5 hash (#99745)
Such buildbots (at the time of writing, only "AMD64 RHEL8 FIPS Only Blake2 Builtin Hash 3.x") cannot use multiprocessing with a fork server, so just skip the test there.
1 parent 5d09d11 commit 679d963

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_asyncio/test_unix_events.py

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from test.support import os_helper
1919
from test.support import socket_helper
2020
from test.support import wait_process
21+
from test.support import hashlib_helper
2122

2223
if sys.platform == 'win32':
2324
raise unittest.SkipTest('UNIX only')
@@ -1893,6 +1894,7 @@ async def test_fork_not_share_event_loop(self):
18931894
self.assertNotEqual(child_loop, id(loop))
18941895
wait_process(pid, exitcode=0)
18951896

1897+
@hashlib_helper.requires_hashdigest('md5')
18961898
def test_fork_signal_handling(self):
18971899
# Sending signal to the forked process should not affect the parent
18981900
# process
@@ -1930,6 +1932,7 @@ async def func():
19301932
self.assertFalse(parent_handled.is_set())
19311933
self.assertTrue(child_handled.is_set())
19321934

1935+
@hashlib_helper.requires_hashdigest('md5')
19331936
def test_fork_asyncio_run(self):
19341937
ctx = multiprocessing.get_context('fork')
19351938
manager = ctx.Manager()
@@ -1946,6 +1949,7 @@ async def child_main():
19461949

19471950
self.assertEqual(result.value, 42)
19481951

1952+
@hashlib_helper.requires_hashdigest('md5')
19491953
def test_fork_asyncio_subprocess(self):
19501954
ctx = multiprocessing.get_context('fork')
19511955
manager = ctx.Manager()

0 commit comments

Comments
 (0)