summaryrefslogtreecommitdiff
path: root/tests/test_cmdline.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-07-09 19:30:07 -0400
committerNed Batchelder <ned@nedbatchelder.com>2016-07-09 19:30:07 -0400
commita8e492ea611720996df4322a5f47e7a71f22b6c4 (patch)
tree0be28ad54bcd3d398346bd5b080135bf67e1dca5 /tests/test_cmdline.py
parentf471a289d9677daf8978b15997bd1667e8681661 (diff)
downloadpython-coveragepy-a8e492ea611720996df4322a5f47e7a71f22b6c4.tar.gz
Fix the check for default values of run-affecting options, and add a test
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 f253160..3f471b8 100644
--- a/tests/test_cmdline.py
+++ b/tests/test_cmdline.py
@@ -450,6 +450,14 @@ class CmdLineTest(BaseCmdLineTest):
.stop()
.save()
""")
+ self.cmd_executes("run --concurrency=multiprocessing foo.py", """\
+ .coverage(concurrency='multiprocessing')
+ .erase()
+ .start()
+ .run_python_file('foo.py', ['foo.py'])
+ .stop()
+ .save()
+ """)
def test_bad_concurrency(self):
self.command_line("run --concurrency=nothing", ret=ERR)