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

Function tearDownModule

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

Source from the content-addressed store, hash-verified

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

Callers 1

_handleModuleTearDownMethod · 0.50

Calls 3

set_debugMethod · 0.45
enableMethod · 0.45
disableMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…