Skip to content

Commit 1fdc86a

Browse files
add ignore_fork_in_thread_deprecation_warnings() decorator to test.
1 parent 7cfab1a commit 1fdc86a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Lib/test/test_interpreters/test_stress.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from test import support
66
from test.support import import_helper
77
from test.support import threading_helper
8+
from test.support import warnings_helper
89
# Raise SkipTest if subinterpreters not supported.
910
_interpreters = import_helper.import_module('_interpreters')
1011
from concurrent import interpreters
@@ -83,6 +84,7 @@ def test_create_interpreter_no_memory(self):
8384
with support.inject_memory_error_cm(0, 1):
8485
_interpreters.create()
8586

87+
@warnings_helper.ignore_fork_in_thread_deprecation_warnings()
8688
@support.requires_fork()
8789
def test_unclosed_interpreter_on_fork(self):
8890
interp = interpreters.create()

0 commit comments

Comments
 (0)