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 0e65c2b commit 82e787dCopy full SHA for 82e787d
Lib/test/_test_multiprocessing.py
@@ -5833,8 +5833,11 @@ def test_spawn_dont_set_context(self):
5833
for method in ('fork', 'spawn', 'forkserver'):
5834
multiprocessing.set_start_method(None, force=True)
5835
5836
- context = multiprocessing.get_context(method)
5837
- process = context.Process(target=self._dummy_func)
+ try:
+ ctx = multiprocessing.get_context(method)
5838
+ except ValueError:
5839
+ continue
5840
+ process = ctx .Process(target=self._dummy_func)
5841
process.start()
5842
process.join()
5843
self.assertIsNone(multiprocessing.get_start_method(allow_none=True))
0 commit comments