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

Function setUpModule

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

Source from the content-addressed store, hash-verified

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

Callers 1

_handleModuleFixtureMethod · 0.50

Calls 4

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

Tested by

no test coverage detected