From cfa0e04792c7969f65e5d1c8cc61eaad4aa809dc Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Mon, 23 Mar 2026 15:56:11 +0100 Subject: [PATCH] gh-146325: Use `test.support.requires_fork` in test_fastpath_cache_cleared_in_forked_child (#146330) --- tests/test_zip.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_zip.py b/tests/test_zip.py index 67407145..3b6778eb 100644 --- a/tests/test_zip.py +++ b/tests/test_zip.py @@ -3,6 +3,8 @@ import sys import unittest +from test.support import requires_fork + from importlib_metadata import ( FastPath, PackageNotFoundError, @@ -52,6 +54,7 @@ def test_one_distribution(self): 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(),