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

Method setUp

Lib/test/test_gc.py:1264–1272  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1262
1263class GCCallbackTests(unittest.TestCase):
1264 def setUp(self):
1265 # Save gc state and disable it.
1266 self.enabled = gc.isenabled()
1267 gc.disable()
1268 self.debug = gc.get_debug()
1269 gc.set_debug(0)
1270 gc.callbacks.append(self.cb1)
1271 gc.callbacks.append(self.cb2)
1272 self.othergarbage = []
1273
1274 def tearDown(self):
1275 # Restore gc state

Callers

nothing calls this directly

Calls 4

disableMethod · 0.45
get_debugMethod · 0.45
set_debugMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected