MCPcopy Index your code
hub / github.com/RustPython/RustPython / setUp

Method setUp

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

mkdtempMethod · 0.80

Tested by

no test coverage detected