diff options
Diffstat (limited to 'tests/test_arcs.py')
-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.""" |