diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2013-05-01 20:54:52 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2013-05-01 20:54:52 -0400 |
commit | 6949845c4388f4cca04058abd45d5b20a9a5d94f (patch) | |
tree | 1c6d89345a0b20c8d8d36884e21970533bb558e1 | |
parent | e2a1f56295f3d54473245a8e02bb158c79eb402f (diff) | |
download | python-coveragepy-git-6949845c4388f4cca04058abd45d5b20a9a5d94f.tar.gz |
Add a (failing) test for #146.
-rw-r--r-- | tests/test_arcs.py | 12 |
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.""" |