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

Method tempdir

Lib/test/test_pathlib/test_pathlib.py:1182–1186  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1180 self.assertEqual(normcase(path_a), normcase(path_b))
1181
1182 def tempdir(self):
1183 d = os_helper._longpath(tempfile.mkdtemp(suffix='-dirD',
1184 dir=os.getcwd()))
1185 self.addCleanup(os_helper.rmtree, d)
1186 return d
1187
1188 def test_matches_writablepath_docstrings(self):
1189 path_names = {name for name in dir(pathlib.types._WritablePath) if name[0] != '_'}

Callers 1

test_resolve_commonMethod · 0.95

Calls 2

mkdtempMethod · 0.80
addCleanupMethod · 0.80

Tested by

no test coverage detected