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

Method setUp

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

Source from the content-addressed store, hash-verified

580
581class TestTurtle(unittest.TestCase):
582 def setUp(self):
583 with patch_screen():
584 self.turtle = turtle.Turtle()
585
586 # Reset the Screen singleton to avoid reference leaks
587 self.addCleanup(setattr, turtle.Turtle, '_screen', None)
588
589 def test_begin_end_fill(self):
590 self.assertFalse(self.turtle.filling())

Callers

nothing calls this directly

Calls 2

patch_screenFunction · 0.85
addCleanupMethod · 0.80

Tested by

no test coverage detected