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

Method test_issue1395_2

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

Source from the content-addressed store, hash-verified

810 self.assertEqual(reads, self.normalized)
811
812 def test_issue1395_2(self):
813 txt = self.TextIOWrapper(self.BytesIO(self.testdata), encoding="ascii")
814 txt._CHUNK_SIZE = 4
815
816 reads = ""
817 while True:
818 c = txt.read(4)
819 if not c:
820 break
821 reads += c
822 self.assertEqual(reads, self.normalized)
823
824 def test_issue1395_3(self):
825 txt = self.TextIOWrapper(self.BytesIO(self.testdata), encoding="ascii")

Callers

nothing calls this directly

Calls 2

readMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected