diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-11 19:44:45 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-11 19:44:45 -0500 |
commit | 013f326263ef82c97259d6c6b69d0f62278cf3ae (patch) | |
tree | a584aac092652cc1bb398120d894a935dc2aa728 /test/test_process.py | |
parent | 06b941674b217683db6351fcb9f4fe717a90ef9e (diff) | |
download | python-coveragepy-git-013f326263ef82c97259d6c6b69d0f62278cf3ae.tar.gz |
No longer see a mysterious exception when not able to run code: AttributeError: 'NoneType' object has no attribute 'isabs'. #153
Diffstat (limited to 'test/test_process.py')
-rw-r--r-- | test/test_process.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_process.py b/test/test_process.py index d33dac59..259bf259 100644 --- a/test/test_process.py +++ b/test/test_process.py @@ -358,6 +358,7 @@ class ProcessTest(CoverageTest): out = self.run_command("coverage run i_dont_exist.py") self.assertIn("No file to run: 'i_dont_exist.py'", out) self.assertNotIn("warning", out) + self.assertNotIn("Exception", out) out = self.run_command("coverage run -m no_such_module") self.assertTrue( @@ -365,6 +366,7 @@ class ProcessTest(CoverageTest): ("No module named 'no_such_module'" in out) ) self.assertNotIn("warning", out) + self.assertNotIn("Exception", out) if sys.version_info >= (3, 0): # This only works on 3.x for now. # It only works with the C tracer. |