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.
1 parent 5919ba4 commit 980ba92Copy full SHA for 980ba92
Lib/test/_test_multiprocessing.py
@@ -5936,6 +5936,7 @@ def test_context(self):
5936
def _dummy_func():
5937
pass
5938
5939
+ @warnings_helper.ignore_fork_in_thread_deprecation_warnings()
5940
def test_spawn_dont_set_context(self):
5941
# Run a process with spawn or forkserver context may change
5942
# the global start method, see gh-109263.
@@ -5946,7 +5947,7 @@ def test_spawn_dont_set_context(self):
5946
5947
ctx = multiprocessing.get_context(method)
5948
except ValueError:
5949
continue
- process = ctx .Process(target=self._dummy_func)
5950
+ process = ctx.Process(target=self._dummy_func)
5951
process.start()
5952
process.join()
5953
self.assertIsNone(multiprocessing.get_start_method(allow_none=True))
0 commit comments