diff options
author | Ionel Cristian Maries <contact@ionelmc.ro> | 2015-06-28 23:30:06 +0300 |
---|---|---|
committer | Ionel Cristian Maries <contact@ionelmc.ro> | 2015-06-28 23:30:06 +0300 |
commit | 2976dbac54a99b025167dfe2310e38de7b9a413b (patch) | |
tree | ea29c9b4e2f78bf77fd81186ced3774ce5c7b8cc /tests/test_api.py | |
parent | b0e9ebec2c6ef3b12ce21309a4e816378cd9c043 (diff) | |
download | python-coveragepy-2976dbac54a99b025167dfe2310e38de7b9a413b.tar.gz |
Fix various assertions.
Diffstat (limited to 'tests/test_api.py')
-rw-r--r-- | tests/test_api.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index baf1f01..1667c5f 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -7,6 +7,7 @@ import textwrap import coverage from coverage.backward import StringIO +from coverage.misc import CoverageException from tests.coveragetest import CoverageTest @@ -245,7 +246,7 @@ class ApiTest(CoverageTest): # Used to be you'd get an exception reporting on nothing... cov = coverage.coverage() cov.erase() - cov.report() + self.assertRaises(CoverageException, cov.report) def test_start_stop_start_stop(self): self.make_file("code1.py", """\ |