From 9b1318c0fb150ab019888f86d384f10241baaf16 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 11 May 2009 22:11:37 -0400 Subject: Reporting on nothing is OK. --- test/test_api.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/test_api.py') diff --git a/test/test_api.py b/test/test_api.py index ce34932..68f1dc9 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() -- cgit v1.2.1