(self)
| 798 | self.assertRaises(TypeError, txt.writelines, b'abc') |
| 799 | |
| 800 | def test_issue1395_1(self): |
| 801 | txt = self.TextIOWrapper(self.BytesIO(self.testdata), encoding="ascii") |
| 802 | |
| 803 | # read one char at a time |
| 804 | reads = "" |
| 805 | while True: |
| 806 | c = txt.read(1) |
| 807 | if not c: |
| 808 | break |
| 809 | reads += c |
| 810 | self.assertEqual(reads, self.normalized) |
| 811 | |
| 812 | def test_issue1395_2(self): |
| 813 | txt = self.TextIOWrapper(self.BytesIO(self.testdata), encoding="ascii") |
nothing calls this directly
no test coverage detected