summaryrefslogtreecommitdiff
path: root/tests/test_concurrency.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-02-09 06:06:32 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-02-09 06:08:14 -0500
commit32ff8715f080c5a3cfbeb605daa929f424b1e748 (patch)
tree852d3bae63db71fc8fbe9ed925bddd6e6e14f848 /tests/test_concurrency.py
parentdacea2d09a383db32bb4620a987076b02fe009f8 (diff)
downloadpython-coveragepy-git-32ff8715f080c5a3cfbeb605daa929f424b1e748.tar.gz
fix: provide an intelligible error message for multiprocessing with no config file. #1320
Diffstat (limited to 'tests/test_concurrency.py')
-rw-r--r--tests/test_concurrency.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py
index 5665e37f..1217142a 100644
--- a/tests/test_concurrency.py
+++ b/tests/test_concurrency.py
@@ -369,6 +369,10 @@ class ConcurrencyTest(CoverageTest):
with pytest.raises(ConfigError, match="Conflicting concurrency settings: eventlet, gevent"):
self.command_line("run prog.py")
+ def test_multiprocessing_needs_config_file(self):
+ with pytest.raises(ConfigError, match="multiprocessing requires a configuration file"):
+ self.command_line("run --concurrency=multiprocessing prog.py")
+
class WithoutConcurrencyModuleTest(CoverageTest):
"""Tests of what happens if the requested concurrency isn't installed."""