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
commit2d3759d244a5f88101e208be8c965881f227f65b (patch)
tree4ca0af03d56096c1631b3f7d1978b0a077a25b0a /tests/test_cmdline.py
parent00f842367a49bc9c0a486cabf0dd01dd36bc72aa (diff)
downloadpython-coveragepy-git-2d3759d244a5f88101e208be8c965881f227f65b.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 f2531605..3f471b88 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)