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

Method setUp

Lib/test/test_pkgutil.py:27–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25class PkgutilTests(unittest.TestCase):
26
27 def setUp(self):
28 self.dirname = tempfile.mkdtemp()
29 self.addCleanup(shutil.rmtree, self.dirname)
30 sys.path.insert(0, self.dirname)
31
32 def tearDown(self):
33 del sys.path[0]

Callers

nothing calls this directly

Calls 3

mkdtempMethod · 0.80
addCleanupMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected