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

Method test_issue1395_5

Lib/test/test_io/test_textio.py:843–851  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

841 self.assertEqual(reads, self.normalized)
842
843 def test_issue1395_5(self):
844 txt = self.TextIOWrapper(self.BytesIO(self.testdata), encoding="ascii")
845 txt._CHUNK_SIZE = 4
846
847 reads = txt.read(4)
848 pos = txt.tell()
849 txt.seek(0)
850 txt.seek(pos)
851 self.assertEqual(txt.read(4), "BBB\n")
852
853 def test_issue2282(self):
854 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