We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test.support.requires_fork
1 parent 1114d7f commit 135067aCopy full SHA for 135067a
Lib/test/test_importlib/metadata/test_zip.py
@@ -3,7 +3,7 @@
3
import sys
4
import unittest
5
6
-from test.support import warnings_helper
+from test.support import requires_fork, warnings_helper
7
8
from importlib.metadata import (
9
FastPath,
@@ -53,11 +53,7 @@ def test_one_distribution(self):
53
assert len(dists) == 1
54
55
@warnings_helper.ignore_fork_in_thread_deprecation_warnings()
56
- @unittest.skipUnless(
57
- hasattr(os, 'register_at_fork')
58
- and 'fork' in multiprocessing.get_all_start_methods(),
59
- 'requires fork-based multiprocessing support',
60
- )
+ @requires_fork()
61
def test_fastpath_cache_cleared_in_forked_child(self):
62
zip_path = sys.path[0]
63
0 commit comments