Skip to content

Commit 199e029

Browse files
committed
Suppress deprecation warning in fork.
1 parent 8d3afbd commit 199e029

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_importlib/metadata/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 warnings_helper
7+
68
from importlib.metadata import (
79
FastPath,
810
PackageNotFoundError,
@@ -50,6 +52,7 @@ def test_one_distribution(self):
5052
dists = list(distributions(path=sys.path[:1]))
5153
assert len(dists) == 1
5254

55+
@warnings_helper.ignore_fork_in_thread_deprecation_warnings()
5356
@unittest.skipUnless(
5457
hasattr(os, 'register_at_fork')
5558
and 'fork' in multiprocessing.get_all_start_methods(),

0 commit comments

Comments
 (0)