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 b42824d commit b41c2b3Copy full SHA for b41c2b3
mutmut/__main__.py
@@ -4,7 +4,7 @@
4
import inspect
5
import itertools
6
import json
7
-from multiprocessing import Pool
+from multiprocessing import Pool, set_start_method
8
import os
9
import resource
10
import shutil
@@ -882,6 +882,9 @@ def inner_timout_checker():
882
@click.option('--max-children', type=int)
883
@click.argument('mutant_names', required=False, nargs=-1)
884
def run(mutant_names, *, max_children):
885
+ # used to copy the global mutmut.config to subprocesses
886
+ set_start_method('fork')
887
+
888
assert isinstance(mutant_names, (tuple, list)), mutant_names
889
_run(mutant_names, max_children)
890
0 commit comments