summaryrefslogtreecommitdiff
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
commit6949845c4388f4cca04058abd45d5b20a9a5d94f (patch)
tree1c6d89345a0b20c8d8d36884e21970533bb558e1
parente2a1f56295f3d54473245a8e02bb158c79eb402f (diff)
downloadpython-coveragepy-git-6949845c4388f4cca04058abd45d5b20a9a5d94f.tar.gz
Add a (failing) test for #146.
-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 1eb1786e..f3c5fc34 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."""