Commits

Ned Batchelder  committed fbb77d3

Add a (failing) test for #146.

  • Participants
  • Parent commits 236cead

Comments (0)

Files changed (1)

File tests/test_arcs.py

                 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."""