diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-08 17:38:51 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-08 17:38:51 -0500 |
commit | 5ed5253d89664d675566b8ea36677a75158ede4b (patch) | |
tree | 4b26b6f73685f1a5755b30bf9ac2ea9fb0f0a304 /test/test_arcs.py | |
parent | 715ceff602f744cf3ddd3e60bd65260250b8163f (diff) | |
download | python-coveragepy-git-5ed5253d89664d675566b8ea36677a75158ede4b.tar.gz |
Dict literals shouldn't count as many different exits.
Diffstat (limited to 'test/test_arcs.py')
-rw-r--r-- | test/test_arcs.py | 18 |
1 files changed, 18 insertions, 0 deletions
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.") |