MCPcopy Index your code
hub / github.com/RustPython/RustPython / setUp

Method setUp

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

Source from the content-addressed store, hash-verified

1266
1267class GCCallbackTests(unittest.TestCase):
1268 def setUp(self):
1269 # Save gc state and disable it.
1270 self.enabled = gc.isenabled()
1271 gc.disable()
1272 self.debug = gc.get_debug()
1273 gc.set_debug(0)
1274 gc.callbacks.append(self.cb1)
1275 gc.callbacks.append(self.cb2)
1276 self.othergarbage = []
1277
1278 def tearDown(self):
1279 # 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