From d450015c6b7fa7a23618b55c446bc5c09242d0f9 Mon Sep 17 00:00:00 2001 From: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Date: Thu, 24 Nov 2022 10:19:24 +0530 Subject: [PATCH] fix tests without md5 --- Lib/test/test_asyncio/test_unix_events.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py index 4e1dab2f86b4dd..e71e242a5f9f17 100644 --- a/Lib/test/test_asyncio/test_unix_events.py +++ b/Lib/test/test_asyncio/test_unix_events.py @@ -18,6 +18,7 @@ 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 @@ async def test_fork_not_share_event_loop(self): 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 @@ async def func(): 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 @@ async def child_main(): self.assertEqual(result.value, 42) + @hashlib_helper.requires_hashdigest('md5') def test_fork_asyncio_subprocess(self): ctx = multiprocessing.get_context('fork') manager = ctx.Manager()