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

Method test_issue1395_2

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

Source from the content-addressed store, hash-verified

3470 self.assertEqual(reads, self.normalized)
3471
3472 def test_issue1395_2(self):
3473 txt = self.TextIOWrapper(self.BytesIO(self.testdata), encoding="ascii")
3474 txt._CHUNK_SIZE = 4
3475
3476 reads = ""
3477 while True:
3478 c = txt.read(4)
3479 if not c:
3480 break
3481 reads += c
3482 self.assertEqual(reads, self.normalized)
3483
3484 def test_issue1395_3(self):
3485 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