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

Function tearDownModule

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

Source from the content-addressed store, hash-verified

1688
1689
1690def tearDownModule():
1691 gc.set_debug(debug)
1692 # test gc.enable() even if GC is disabled by default
1693 if verbose:
1694 print("restoring automatic collection")
1695 # make sure to always test gc.enable()
1696 gc.enable()
1697 assert gc.isenabled()
1698 if not enabled:
1699 gc.disable()
1700
1701
1702if __name__ == "__main__":

Callers 1

_handleModuleTearDownMethod · 0.50

Calls 4

printFunction · 0.50
set_debugMethod · 0.45
enableMethod · 0.45
disableMethod · 0.45

Tested by

no test coverage detected