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

Method test_issue1395_1

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

Source from the content-addressed store, hash-verified

3458 self.assertRaises(TypeError, txt.writelines, b'abc')
3459
3460 def test_issue1395_1(self):
3461 txt = self.TextIOWrapper(self.BytesIO(self.testdata), encoding="ascii")
3462
3463 # read one char at a time
3464 reads = ""
3465 while True:
3466 c = txt.read(1)
3467 if not c:
3468 break
3469 reads += c
3470 self.assertEqual(reads, self.normalized)
3471
3472 def test_issue1395_2(self):
3473 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