(self)
| 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") |
nothing calls this directly
no test coverage detected