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

Method tearDown

Lib/test/test_zipimport_support.py:77–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 sys.path_importer_cache.clear()
76
77 def tearDown(self):
78 sys.path[:] = self.path
79 sys.meta_path[:] = self.meta_path
80 sys.path_hooks[:] = self.path_hooks
81 sys.path_importer_cache.clear()
82
83 def test_inspect_getsource_issue4223(self):
84 test_src = "def foo(): pass\n"

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected