From: Hood Chatham Date: Mon, 23 Mar 2026 14:56:11 +0000 (+0100) Subject: gh-146325: Use `test.support.requires_fork` in test_fastpath_cache_cleared_in_forked_... X-Git-Tag: v3.15.0a8~204 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c83e8bed8b78e0b49b21aacefd6b3380e5a2caa;p=thirdparty%2FPython%2Fcpython.git gh-146325: Use `test.support.requires_fork` in test_fastpath_cache_cleared_in_forked_child (#146330) --- diff --git a/Lib/test/test_importlib/metadata/test_zip.py b/Lib/test/test_importlib/metadata/test_zip.py index 9daa04173b84..97168549667d 100644 --- a/Lib/test/test_importlib/metadata/test_zip.py +++ b/Lib/test/test_importlib/metadata/test_zip.py @@ -3,7 +3,7 @@ import os import sys import unittest -from test.support import warnings_helper +from test.support import requires_fork, warnings_helper from importlib.metadata import ( FastPath, @@ -53,6 +53,7 @@ class TestZip(fixtures.ZipFixtures, unittest.TestCase): assert len(dists) == 1 @warnings_helper.ignore_fork_in_thread_deprecation_warnings() + @requires_fork() @unittest.skipUnless( hasattr(os, 'register_at_fork') and 'fork' in multiprocessing.get_all_start_methods(),