summaryrefslogtreecommitdiff
path: root/test/test_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_api.py')
-rw-r--r--test/test_api.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_api.py b/test/test_api.py
index ce349329..68f1dc95 100644
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -240,3 +240,9 @@ class ApiTest(CoverageTest):
cov.save()
self.assert_equal_sets(os.listdir("."),
["datatest3.py", "datatest3.pyc", "cov.data.14"])
+
+ def testEmptyReporting(self):
+ # Used to be you'd get an exception reporting on nothing...
+ cov = coverage.coverage()
+ cov.erase()
+ cov.report()