diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-18 06:16:55 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-18 12:12:27 -0500 |
commit | 2094909df35db45ca7a409cc37f38d49c3191d2a (patch) | |
tree | a48f2660032c26b364fb034bc1459e7674346bba /coverage/control.py | |
parent | 181d71c7ae537299a74291e4671bd8b896bcd55d (diff) | |
download | python-coveragepy-git-2094909df35db45ca7a409cc37f38d49c3191d2a.tar.gz |
fix: suffix=False will suppress the suffix even with multiprocessing. #989
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 7 |
1 files changed, 6 insertions, 1 deletions
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 |