MCPcopy Index your code
hub / github.com/python/cpython / test_poly

Method test_poly

Lib/test/test_turtle.py:627–632  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 3

assertFalseMethod · 0.80
polyMethod · 0.80
assertTrueMethod · 0.80

Tested by

no test coverage detected