diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-05-11 22:11:37 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-05-11 22:11:37 -0400 |
commit | 9b1318c0fb150ab019888f86d384f10241baaf16 (patch) | |
tree | 6f3bc29a942eef9926e5036a4a282b171d60b4a0 /test/test_api.py | |
parent | e5c4c1f988c155440eb4591e6060166388a40ea9 (diff) | |
download | python-coveragepy-9b1318c0fb150ab019888f86d384f10241baaf16.tar.gz |
Reporting on nothing is OK.
Diffstat (limited to 'test/test_api.py')
-rw-r--r-- | test/test_api.py | 6 |
1 files changed, 6 insertions, 0 deletions
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() |