summaryrefslogtreecommitdiff
path: root/tests/test_cmdline.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r--tests/test_cmdline.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py
index 795a01fb..d72fd83c 100644
--- a/tests/test_cmdline.py
+++ b/tests/test_cmdline.py
@@ -456,6 +456,14 @@ class CmdLineTest(BaseCmdLineTest):
out = self.stdout()
self.assertIn("option --concurrency: invalid choice: 'nothing'", out)
+ def test_no_multiple_concurrency(self):
+ # You can't use multiple concurrency values on the command line.
+ # I would like to have a better message about not allowing multiple
+ # values for this option, but optparse is not that flexible.
+ self.command_line("run --concurrency=multiprocessing,gevent foo.py", ret=ERR)
+ out = self.stdout()
+ self.assertIn("option --concurrency: invalid choice: 'multiprocessing,gevent'", out)
+
def test_run_debug(self):
self.cmd_executes("run --debug=opt1 foo.py", """\
.coverage(debug=["opt1"])