summaryrefslogtreecommitdiff
path: root/tests/test_arcs.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2013-05-01 20:54:52 -0400
committerNed Batchelder <ned@nedbatchelder.com>2013-05-01 20:54:52 -0400
commit8ea68f66b0692f7c18800236ff241f4cb7bcc4cc (patch)
treec5bb34baabff738edfd7866978c87928c9a5d85c /tests/test_arcs.py
parent897619e30049ab501de92ddec6cbe2fe77beccd5 (diff)
downloadpython-coveragepy-8ea68f66b0692f7c18800236ff241f4cb7bcc4cc.tar.gz
Add a (failing) test for #146.
Diffstat (limited to 'tests/test_arcs.py')
-rw-r--r--tests/test_arcs.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index 1eb1786..f3c5fc3 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -167,6 +167,18 @@ if sys.version_info >= (2, 6):
arcz=".1 .2 23 34 4. 16 6."
)
+ def test_bug_146(self):
+ # https://bitbucket.org/ned/coveragepy/issue/146
+ self.check_coverage("""\
+ for i in range(2):
+ with open("test", "w") as f:
+ print 3
+ print 4
+ print 5
+ """,
+ arcz=".1 12 23 34 41 15 5."
+ )
+
class LoopArcTest(CoverageTest):
"""Arc-measuring tests involving loops."""