diff options
Diffstat (limited to 'test/test_process.py')
-rw-r--r-- | test/test_process.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_process.py b/test/test_process.py index acfb8896..8a47bfc7 100644 --- a/test/test_process.py +++ b/test/test_process.py @@ -275,3 +275,13 @@ class ProcessTest(CoverageTest): Coverage.py warning: Module quux was never imported. Coverage.py warning: No data was collected. """) in out) + + def test_warnings_if_never_run(self): + out = self.run_command("coverage run i_dont_exist.py") + self.assertTrue("No file to run: 'i_dont_exist.py'" in out) + self.assertTrue("warning" not in out) + + out = self.run_command("coverage run -m no_such_module") + self.assertTrue("No module named no_such_module" in out) + self.assertTrue("warning" not in out) + |