summaryrefslogtreecommitdiff
path: root/test/test_arcs.py
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
commit1839a5c6da5b2d0e0a0ca0e3a1dec7b7bd983adc (patch)
tree35634d7717909dc95a6d58e697c76f6b814dd352 /test/test_arcs.py
parentb5264460669282d5085b243de25d8f46be5c7ae9 (diff)
downloadpython-coveragepy-git-1839a5c6da5b2d0e0a0ca0e3a1dec7b7bd983adc.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/test_arcs.py')
-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 fa660f8b..bc54429e 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."""