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

Method test_init_with_filename

Lib/test/test_zstd.py:1597–1608  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1595 os.remove(filename)
1596
1597 def test_init_with_filename(self):
1598 with tempfile.NamedTemporaryFile(delete=False) as tmp_f:
1599 filename = pathlib.Path(tmp_f.name)
1600
1601 with ZstdFile(filename) as f:
1602 pass
1603 with ZstdFile(filename, "w") as f:
1604 pass
1605 with ZstdFile(filename, "a") as f:
1606 pass
1607
1608 os.remove(filename)
1609
1610 def test_init_mode(self):
1611 bi = io.BytesIO()

Callers

nothing calls this directly

Calls 2

ZstdFileClass · 0.90
removeMethod · 0.45

Tested by

no test coverage detected