summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-10-23 09:24:27 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-10-23 09:24:27 -0400
commit654c6a41d246e4826d7c77ffa15419454e521dc4 (patch)
tree45bd4a854e56648d1bcf30fc1ea46db3e5e4ebdf /test
parent595bf4786b276ea4c88d52f21d47c6d68769482e (diff)
downloadpython-coveragepy-654c6a41d246e4826d7c77ffa15419454e521dc4.tar.gz
Properly shift multiline references to the first line of the statement. This code is sloppy, I just want it to work first.
Diffstat (limited to 'test')
-rw-r--r--test/test_arcs.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test_arcs.py b/test/test_arcs.py
index fa660f8..bc54429 100644
--- a/test/test_arcs.py
+++ b/test/test_arcs.py
@@ -89,6 +89,17 @@ class SimpleArcTest(CoverageTest):
""",
arcz=".1 14 45 5. .2 2. 23 3.", arcz_missing="23 3.")
+ def test_multiline(self):
+ self.check_coverage("""\
+ a = (
+ 2 +
+ 3
+ )
+ b = \\
+ 6
+ """,
+ arcz=".1 15 5.", arcz_missing="")
+
class LoopArcTest(CoverageTest):
"""Arc-measuring tests involving loops."""