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

Method test_init_mode

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

Source from the content-addressed store, hash-verified

1607 os.remove(filename)
1608
1609 def test_init_mode(self):
1610 bi = io.BytesIO()
1611
1612 with ZstdFile(bi, "r"):
1613 pass
1614 with ZstdFile(bi, "rb"):
1615 pass
1616 with ZstdFile(bi, "w"):
1617 pass
1618 with ZstdFile(bi, "wb"):
1619 pass
1620 with ZstdFile(bi, "a"):
1621 pass
1622 with ZstdFile(bi, "ab"):
1623 pass
1624
1625 def test_init_with_x_mode(self):
1626 with tempfile.NamedTemporaryFile() as tmp_f:

Callers

nothing calls this directly

Calls 1

ZstdFileClass · 0.90

Tested by

no test coverage detected