Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ teardown
Method
teardown
Lib/test/test_pathlib/support/zip_path.py:34–35 ·
view source on GitHub ↗
(self, root)
Source
from the content-addressed store, hash-verified
32
return
self.path_cls(zip_file=zipfile.ZipFile(io.BytesIO(),
"w"
))
33
34
def
teardown(self, root):
35
root.zip_file.close()
36
37
def
create_file(self, path, data=b
''
):
38
path.zip_file.writestr(vfspath(path), data)
Callers
3
tearDown
Method · 0.45
tearDown
Method · 0.45
tearDown
Method · 0.45
Calls
1
close
Method · 0.45
Tested by
3
tearDown
Method · 0.36
tearDown
Method · 0.36
tearDown
Method · 0.36