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

Method setUp

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

Source from the content-addressed store, hash-verified

564class NestedNamespacePackageTest(unittest.TestCase):
565
566 def setUp(self):
567 self.basedir = tempfile.mkdtemp()
568 self.old_path = sys.path[:]
569
570 def tearDown(self):
571 sys.path[:] = self.old_path

Callers

nothing calls this directly

Calls 1

mkdtempMethod · 0.80

Tested by

no test coverage detected