From 609bd9a53c89d6449ee504c266b3d02c15a097d0 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 25 Jun 2016 08:35:00 -0400 Subject: Combine no longer appends by default Combine used to always load an existing .coverage file. This lead to confusing results and extra tox-clean steps. Now the default is to not load the existing file, though a new --append switch on coverage combine gets you that behavior if you need it. This also pointed up an issue with concurrency=multiprocessing, which is that the child processes automatically used parallel=True, but the parent process did not. Now concurrency=multiprocessing implies parallel=True. --- coverage/control.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'coverage/control.py') diff --git a/coverage/control.py b/coverage/control.py index 2f2989cb..f350b3d1 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -247,6 +247,9 @@ class Coverage(object): if concurrency == "multiprocessing": patch_multiprocessing() concurrency = None + # Multi-processing uses parallel for the subprocesses, so also use + # it for the main process. + self.config.parallel = True self.collector = Collector( should_trace=self._should_trace, -- cgit v1.2.1