diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-02-09 06:06:32 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-02-09 06:08:14 -0500 |
commit | 32ff8715f080c5a3cfbeb605daa929f424b1e748 (patch) | |
tree | 852d3bae63db71fc8fbe9ed925bddd6e6e14f848 /coverage/control.py | |
parent | dacea2d09a383db32bb4620a987076b02fe009f8 (diff) | |
download | python-coveragepy-git-32ff8715f080c5a3cfbeb605daa929f424b1e748.tar.gz |
fix: provide an intelligible error message for multiprocessing with no config file. #1320
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coverage/control.py b/coverage/control.py index 0f9f675e..910cfb08 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -462,6 +462,8 @@ class Coverage: raise ConfigError( # pragma: only jython "multiprocessing is not supported on this Python" ) + if self.config.config_file is None: + raise ConfigError("multiprocessing requires a configuration file") patch_multiprocessing(rcfile=self.config.config_file) dycon = self.config.dynamic_context |