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

Method test_issue1395_3

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

Source from the content-addressed store, hash-verified

822 self.assertEqual(reads, self.normalized)
823
824 def test_issue1395_3(self):
825 txt = self.TextIOWrapper(self.BytesIO(self.testdata), encoding="ascii")
826 txt._CHUNK_SIZE = 4
827
828 reads = txt.read(4)
829 reads += txt.read(4)
830 reads += txt.readline()
831 reads += txt.readline()
832 reads += txt.readline()
833 self.assertEqual(reads, self.normalized)
834
835 def test_issue1395_4(self):
836 txt = self.TextIOWrapper(self.BytesIO(self.testdata), encoding="ascii")

Callers

nothing calls this directly

Calls 3

readMethod · 0.95
readlineMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected