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

Method teardown

Lib/test/test_pathlib/support/zip_path.py:33–34  ·  view source on GitHub ↗
(self, root)

Source from the content-addressed store, hash-verified

31 return self.path_cls(zip_file=zipfile.ZipFile(io.BytesIO(), "w"))
32
33 def teardown(self, root):
34 root.zip_file.close()
35
36 def create_file(self, path, data=b''):
37 path.zip_file.writestr(str(path), data)

Callers 3

tearDownMethod · 0.45
tearDownMethod · 0.45
tearDownMethod · 0.45

Calls 1

closeMethod · 0.45

Tested by 3

tearDownMethod · 0.36
tearDownMethod · 0.36
tearDownMethod · 0.36