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

Method test_fill_resets_after_exception

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

Source from the content-addressed store, hash-verified

601 self.assertFalse(self.turtle.filling())
602
603 def test_fill_resets_after_exception(self):
604 # The context manager cleans up correctly after exceptions.
605 try:
606 with self.turtle.fill():
607 self.assertTrue(self.turtle.filling())
608 raise ValueError
609 except ValueError:
610 self.assertFalse(self.turtle.filling())
611
612 def test_fill_context_when_filling(self):
613 # The context manager works even when the turtle is already filling.

Callers

nothing calls this directly

Calls 4

assertTrueMethod · 0.80
fillingMethod · 0.80
assertFalseMethod · 0.80
fillMethod · 0.45

Tested by

no test coverage detected