From ca039838a5c2f98c4566c7796aa42f4561c8eac3 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 12 Oct 2009 07:33:51 -0400 Subject: Don't write arcs if there are none, and an ad-hoc data viewer. --- test/test_data.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/test_data.py') 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() -- cgit v1.2.1