diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-10-12 07:33:51 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-10-12 07:33:51 -0400 |
commit | bae3b7120e7fa8d6e55292f44cf74fac1703f0a1 (patch) | |
tree | 20c91c99071ff47324e6d84045b9491a360d72e3 /test/test_data.py | |
parent | 31c7376f44f425bfc326da5df3163d66ab9765bf (diff) | |
download | python-coveragepy-bae3b7120e7fa8d6e55292f44cf74fac1703f0a1.tar.gz |
Don't write arcs if there are none, and an ad-hoc data viewer.
Diffstat (limited to 'test/test_data.py')
-rw-r--r-- | test/test_data.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_data.py b/test/test_data.py index b6bc978..640f4f0 100644 --- a/test/test_data.py +++ b/test/test_data.py @@ -95,8 +95,9 @@ class DataTest(CoverageTest): self.assert_equal_sets(lines.keys(), EXECED_FILES_1) self.assert_equal_sets(lines['a.py'], A_PY_LINES_1) self.assert_equal_sets(lines['b.py'], B_PY_LINES_1) - self.assert_equal_sets(data['arcs'].keys(), []) - + # If not measuring branches, there's no arcs entry. + self.assertEqual(data.get('arcs', 'not there'), 'not there') + def test_file_format_with_arcs(self): # Write with CoverageData, then read the pickle explicitly. covdata = CoverageData() |