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

Method tearDown

Lib/test/test_importlib/test_pkg_import.py:35–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 self.module_path = os.path.join(self.package_dir, 'foo.py')
34
35 def tearDown(self):
36 shutil.rmtree(self.test_dir)
37 self.assertNotEqual(sys.path.count(self.test_dir), 0)
38 sys.path.remove(self.test_dir)
39 self.remove_modules()
40
41 def rewrite_file(self, contents):
42 try:

Callers

nothing calls this directly

Calls 4

remove_modulesMethod · 0.95
assertNotEqualMethod · 0.80
countMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected