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

Method test_read

Lib/test/test_zipfile/_path/test_path.py:241–247  ·  view source on GitHub ↗
(self, alpharep)

Source from the content-addressed store, hash-verified

239
240 @pass_alpharep
241 def test_read(self, alpharep):
242 root = zipfile.Path(alpharep)
243 a, n, b, g, j = root.iterdir()
244 assert a.read_text(encoding="utf-8") == "content of a"
245 # Also check positional encoding arg (gh-101144).
246 assert a.read_text("utf-8") == "content of a"
247 assert a.read_bytes() == b"content of a"
248
249 @pass_alpharep
250 def test_joinpath(self, alpharep):

Callers

nothing calls this directly

Calls 3

iterdirMethod · 0.95
read_textMethod · 0.45
read_bytesMethod · 0.45

Tested by

no test coverage detected