Skip to content

Commit 980ba92

Browse files
Silence deprecation warnings.
1 parent 5919ba4 commit 980ba92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/_test_multiprocessing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5936,6 +5936,7 @@ def test_context(self):
59365936
def _dummy_func():
59375937
pass
59385938

5939+
@warnings_helper.ignore_fork_in_thread_deprecation_warnings()
59395940
def test_spawn_dont_set_context(self):
59405941
# Run a process with spawn or forkserver context may change
59415942
# the global start method, see gh-109263.
@@ -5946,7 +5947,7 @@ def test_spawn_dont_set_context(self):
59465947
ctx = multiprocessing.get_context(method)
59475948
except ValueError:
59485949
continue
5949-
process = ctx .Process(target=self._dummy_func)
5950+
process = ctx.Process(target=self._dummy_func)
59505951
process.start()
59515952
process.join()
59525953
self.assertIsNone(multiprocessing.get_start_method(allow_none=True))

0 commit comments

Comments
 (0)