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

Function setUpModule

Lib/test/test_gc.py:1676–1683  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1674
1675
1676def setUpModule():
1677 global enabled, debug
1678 enabled = gc.isenabled()
1679 gc.disable()
1680 assert not gc.isenabled()
1681 debug = gc.get_debug()
1682 gc.set_debug(debug & ~gc.DEBUG_LEAK) # this test is supposed to leak
1683 gc.collect() # Delete 2nd generation garbage
1684
1685
1686def tearDownModule():

Callers 1

_handleModuleFixtureMethod · 0.50

Calls 4

disableMethod · 0.45
get_debugMethod · 0.45
set_debugMethod · 0.45
collectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…