(self)
| 625 | self.assertFalse(self.turtle._creatingPoly) |
| 626 | |
| 627 | def test_poly(self): |
| 628 | # The context manager behaves like begin_poly and end_poly. |
| 629 | self.assertFalse(self.turtle._creatingPoly) |
| 630 | with self.turtle.poly(): |
| 631 | self.assertTrue(self.turtle._creatingPoly) |
| 632 | self.assertFalse(self.turtle._creatingPoly) |
| 633 | |
| 634 | def test_poly_resets_after_exception(self): |
| 635 | # The context manager cleans up correctly after exceptions. |
nothing calls this directly
no test coverage detected