summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-11-24 16:06:06 (GMT)
committerGitHub <noreply@github.com>2022-11-24 16:06:06 (GMT)
commit679d963fc896a3328a6440a1af1bc2a38bf6a5e9 (patch)
treec6934dd409c235ce24af0d7a2010102697c77cf6
parent5d09d11aa0b89aeba187f4f520728ccaf4fc5ac1 (diff)
downloadcpython-679d963fc896a3328a6440a1af1bc2a38bf6a5e9.zip
cpython-679d963fc896a3328a6440a1af1bc2a38bf6a5e9.tar.gz
cpython-679d963fc896a3328a6440a1af1bc2a38bf6a5e9.tar.bz2
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.
-rw-r--r--Lib/test/test_asyncio/test_unix_events.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py
index 4e1dab2..e71e242 100644
--- a/Lib/test/test_asyncio/test_unix_events.py
+++ b/Lib/test/test_asyncio/test_unix_events.py
@@ -18,6 +18,7 @@ import multiprocessing
from test.support import os_helper
from test.support import socket_helper
from test.support import wait_process
+from test.support import hashlib_helper
if sys.platform == 'win32':
raise unittest.SkipTest('UNIX only')
@@ -1893,6 +1894,7 @@ class TestFork(unittest.IsolatedAsyncioTestCase):
self.assertNotEqual(child_loop, id(loop))
wait_process(pid, exitcode=0)
+ @hashlib_helper.requires_hashdigest('md5')
def test_fork_signal_handling(self):
# Sending signal to the forked process should not affect the parent
# process
@@ -1930,6 +1932,7 @@ class TestFork(unittest.IsolatedAsyncioTestCase):
self.assertFalse(parent_handled.is_set())
self.assertTrue(child_handled.is_set())
+ @hashlib_helper.requires_hashdigest('md5')
def test_fork_asyncio_run(self):
ctx = multiprocessing.get_context('fork')
manager = ctx.Manager()
@@ -1946,6 +1949,7 @@ class TestFork(unittest.IsolatedAsyncioTestCase):
self.assertEqual(result.value, 42)
+ @hashlib_helper.requires_hashdigest('md5')
def test_fork_asyncio_subprocess(self):
ctx = multiprocessing.get_context('fork')
manager = ctx.Manager()