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

Method test_init_with_filename

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

ZstdFileClass · 0.90
removeMethod · 0.45

Tested by

no test coverage detected