File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Lib/test/test_concurrent_futures Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 77import unittest
88from concurrent import futures
99from test import support
10+ from test .support import warnings_helper
1011
1112from .executor import ExecutorTest , mul
1213from .util import BaseTestCase , ThreadPoolMixin , setup_module
@@ -53,6 +54,7 @@ def test_idle_thread_reuse(self):
5354 @support .requires_fork ()
5455 @unittest .skipUnless (hasattr (os , 'register_at_fork' ), 'need os.register_at_fork' )
5556 @support .requires_resource ('cpu' )
57+ @warnings_helper .ignore_fork_in_thread_deprecation_warnings ()
5658 def test_hang_global_shutdown_lock (self ):
5759 # bpo-45021: _global_shutdown_lock should be reinitialized in the child
5860 # process, otherwise it will never exit
@@ -68,6 +70,7 @@ def submit(pool):
6870
6971 @support .requires_fork ()
7072 @unittest .skipUnless (hasattr (os , 'register_at_fork' ), 'need os.register_at_fork' )
73+ @warnings_helper .ignore_fork_in_thread_deprecation_warnings ()
7174 def test_process_fork_from_a_threadpool (self ):
7275 # bpo-43944: clear concurrent.futures.thread._threads_queues after fork,
7376 # otherwise child process will try to join parent thread
You can’t perform that action at this time.
0 commit comments