summaryrefslogtreecommitdiff
path: root/test/test_arcs.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-11-08 17:38:51 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-11-08 17:38:51 -0500
commit085c95e6d2c1c497a6eb008574ffceb65916841a (patch)
tree84aba273f31ed338577c4650689683e2079333ae /test/test_arcs.py
parent266ed2154d27c212f5189b1e4c80e5f6494c358b (diff)
downloadpython-coveragepy-085c95e6d2c1c497a6eb008574ffceb65916841a.tar.gz
Dict literals shouldn't count as many different exits.
Diffstat (limited to 'test/test_arcs.py')
-rw-r--r--test/test_arcs.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/test_arcs.py b/test/test_arcs.py
index 462ff2f..00567ac 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.")