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

Method tearDown

Lib/idlelib/idle_test/test_codecontext.py:103–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101 self.addCleanup(GetFont_patcher.stop)
102
103 def tearDown(self):
104 if self.cc.context:
105 self.cc.context.destroy()
106 # Explicitly call __del__ to remove scheduled scripts.
107 self.cc.__del__()
108 del self.cc.context, self.cc
109
110 def test_init(self):
111 eq = self.assertEqual

Callers

nothing calls this directly

Calls 2

destroyMethod · 0.45
__del__Method · 0.45

Tested by

no test coverage detected