Skip to content

Commit cfa0e04

Browse files
hoodmanejaraco
authored andcommitted
gh-146325: Use test.support.requires_fork in test_fastpath_cache_cleared_in_forked_child (#146330)
1 parent 49f3daf commit cfa0e04

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎tests/test_zip.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import sys
44
import unittest
55

6+
from test.support import requires_fork
7+
68
from importlib_metadata import (
79
FastPath,
810
PackageNotFoundError,
@@ -52,6 +54,7 @@ def test_one_distribution(self):
5254
assert len(dists) == 1
5355

5456
@warnings_helper.ignore_fork_in_thread_deprecation_warnings()
57+
@requires_fork()
5558
@unittest.skipUnless(
5659
hasattr(os, 'register_at_fork')
5760
and 'fork' in multiprocessing.get_all_start_methods(),

0 commit comments

Comments
 (0)