From 5ed5253d89664d675566b8ea36677a75158ede4b Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 8 Nov 2009 17:38:51 -0500 Subject: Dict literals shouldn't count as many different exits. --- test/test_arcs.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test/test_arcs.py') diff --git a/test/test_arcs.py b/test/test_arcs.py index 462ff2fc..00567ac6 100644 --- a/test/test_arcs.py +++ b/test/test_arcs.py @@ -394,3 +394,21 @@ class ExceptionArcTest(CoverageTest): """, arcz=".1 12 .3 3. 24 45 56 67 7B 89 9B BC C.", arcz_missing="67 7B", arcz_unpredicted="68") + + +class MiscArcTest(CoverageTest): + """Miscellaneous arc-measuring tests.""" + + def test_dict_literal(self): + self.check_coverage("""\ + d = { + 'a': 2, + 'b': 3, + 'c': { + 'd': 5, + 'e': 6, + } + } + assert d + """, + arcz=".1 19 9.") -- cgit v1.2.1