From 61eaeb6150e4b6a04ef8e736c1ff9957be6983f6 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 28 Jul 2015 09:15:40 -0400 Subject: A test for running nothing. --- tests/test_cmdline.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/test_cmdline.py') diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index f0120bb3..cbc44efb 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", """\ -- cgit v1.2.1