summaryrefslogtreecommitdiff
path: root/tests/test_cmdline.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-07-28 09:15:40 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-07-28 09:15:40 -0400
commitdc30dd4f9755da1e3605d5a1c065dd9e632c1a73 (patch)
treec986fad89c36bc96384db03c6f23e6c26fe51862 /tests/test_cmdline.py
parent130b1a2f0b221d584d65edf035906fb0e8c45996 (diff)
downloadpython-coveragepy-dc30dd4f9755da1e3605d5a1c065dd9e632c1a73.tar.gz
A test for running nothing.
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r--tests/test_cmdline.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py
index f0120bb..cbc44ef 100644
--- a/tests/test_cmdline.py
+++ b/tests/test_cmdline.py
@@ -482,6 +482,10 @@ class CmdLineTest(BaseCmdLineTest):
""")
self.cmd_executes_same("run -m mymodule", "run --module mymodule")
+ def test_run_nothing(self):
+ self.command_line("run", ret=ERR)
+ self.assertIn("Nothing to do", self.stdout())
+
def test_xml(self):
# coverage xml [-i] [--omit DIR,...] [FILE1 FILE2 ...]
self.cmd_executes("xml", """\