diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-07-04 08:20:11 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-07-04 08:20:11 -0400 |
commit | 98539b47a2790255f633260bcd60243dc7b6647c (patch) | |
tree | bb1b2bf11f0a547fda96c8cfb386da953ae7238c /tests/test_cmdline.py | |
parent | 1fc4c9681034a2123ce27fa336d16df5dc1cee9c (diff) | |
download | python-coveragepy-git-98539b47a2790255f633260bcd60243dc7b6647c.tar.gz |
Let the concurrency option be multi-valued. #484
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r-- | tests/test_cmdline.py | 8 |
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"]) |