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

Method test_issue1395_5

Lib/test/test_io.py:3503–3511  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3501 self.assertEqual(reads, self.normalized)
3502
3503 def test_issue1395_5(self):
3504 txt = self.TextIOWrapper(self.BytesIO(self.testdata), encoding="ascii")
3505 txt._CHUNK_SIZE = 4
3506
3507 reads = txt.read(4)
3508 pos = txt.tell()
3509 txt.seek(0)
3510 txt.seek(pos)
3511 self.assertEqual(txt.read(4), "BBB\n")
3512
3513 def test_issue2282(self):
3514 buffer = self.BytesIO(self.testdata)

Callers

nothing calls this directly

Calls 4

readMethod · 0.95
tellMethod · 0.95
seekMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected