]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-146325: Use `test.support.requires_fork` in test_fastpath_cache_cleared_in_forked_...
authorHood Chatham <roberthoodchatham@gmail.com>
Mon, 23 Mar 2026 14:56:11 +0000 (15:56 +0100)
committerGitHub <noreply@github.com>
Mon, 23 Mar 2026 14:56:11 +0000 (16:56 +0200)
Lib/test/test_importlib/metadata/test_zip.py

index 9daa04173b843e8f0ca3d2f955de272a22e321d9..97168549667de35042a7dbe41d02d45e7deffe34 100644 (file)
@@ -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(),