summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-10-12 07:33:51 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-10-12 07:33:51 -0400
commitca039838a5c2f98c4566c7796aa42f4561c8eac3 (patch)
treefd0647ff04a0ce96198846b30a5c2c430533437d /test
parentf7a939107f419b3dade8fcfb173af3f1d9b9dd14 (diff)
downloadpython-coveragepy-git-ca039838a5c2f98c4566c7796aa42f4561c8eac3.tar.gz
Don't write arcs if there are none, and an ad-hoc data viewer.
Diffstat (limited to 'test')
-rw-r--r--test/test_data.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_data.py b/test/test_data.py
index b6bc978a..640f4f07 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()