From 2094909df35db45ca7a409cc37f38d49c3191d2a Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 18 Nov 2021 06:16:55 -0500 Subject: fix: suffix=False will suppress the suffix even with multiprocessing. #989 --- coverage/control.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'coverage/control.py') diff --git a/coverage/control.py b/coverage/control.py index ce8ce153..00836b3c 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -482,10 +482,15 @@ class Coverage: ) suffix = self._data_suffix_specified - if suffix or self.config.parallel: + if suffix: if not isinstance(suffix, str): # if data_suffix=True, use .machinename.pid.random suffix = True + elif self.config.parallel: + if suffix is None: + suffix = True + elif not isinstance(suffix, str): + suffix = bool(suffix) else: suffix = None -- cgit v1.2.1