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 | e7fdd272fe8780230ef3aee9910324a932ab1d43 (patch) | |
| tree | c7898b5f8e220598b962ed04f5d56ba3f08b4f8b /tests/test_cmdline.py | |
| parent | ffe481b845ef14289f6920cd2a5b7928e6c78d6a (diff) | |
| download | python-coveragepy-e7fdd272fe8780230ef3aee9910324a932ab1d43.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 795a01f..d72fd83 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"]) |
