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

Method setUp

mypy/test/testfscache.py:14–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12
13class TestFileSystemCache(unittest.TestCase):
14 def setUp(self) -> None:
15 self.tempdir = tempfile.mkdtemp()
16 self.oldcwd = os.getcwd()
17 os.chdir(self.tempdir)
18 self.fscache = FileSystemCache()
19
20 def tearDown(self) -> None:
21 os.chdir(self.oldcwd)

Callers

nothing calls this directly

Calls 1

FileSystemCacheClass · 0.90

Tested by

no test coverage detected