From 32ff8715f080c5a3cfbeb605daa929f424b1e748 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 9 Feb 2022 06:06:32 -0500 Subject: fix: provide an intelligible error message for multiprocessing with no config file. #1320 --- coverage/control.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'coverage') 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 -- cgit v1.2.1