summaryrefslogtreecommitdiff
path: root/tests/test_api.py
diff options
context:
space:
mode:
authorIonel Cristian Maries <contact@ionelmc.ro>2015-06-28 23:30:06 +0300
committerIonel Cristian Maries <contact@ionelmc.ro>2015-06-28 23:30:06 +0300
commitd42bc6cae5911ecb1b64c8c98d8e7acee9e4b074 (patch)
tree9e515007590bd7a83de84a9898923fd0a4245c24 /tests/test_api.py
parent040a2b502156f86ca24b6d7b295260888b290b27 (diff)
downloadpython-coveragepy-git-d42bc6cae5911ecb1b64c8c98d8e7acee9e4b074.tar.gz
Fix various assertions.
Diffstat (limited to 'tests/test_api.py')
-rw-r--r--tests/test_api.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
index baf1f016..1667c5f4 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", """\