summaryrefslogtreecommitdiff
path: root/test/test_api.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-05-11 22:11:37 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-05-11 22:11:37 -0400
commit6cdc3666a418d5234878c001d02b522254d29740 (patch)
treecfa72660cab398e7296ff5a822dd8282c274e734 /test/test_api.py
parenteb862b1fe13968a0e2b1e75682c59af540c8b9bd (diff)
downloadpython-coveragepy-git-6cdc3666a418d5234878c001d02b522254d29740.tar.gz
Reporting on nothing is OK.
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()