| 4029 | self.assertEqual(txt.detach().getvalue().decode('ascii'), expected) |
| 4030 | |
| 4031 | def test_issue25862(self): |
| 4032 | # Assertion failures occurred in tell() after read() and write(). |
| 4033 | t = self.TextIOWrapper(self.BytesIO(b'test'), encoding='ascii') |
| 4034 | t.read(1) |
| 4035 | t.read() |
| 4036 | t.tell() |
| 4037 | t = self.TextIOWrapper(self.BytesIO(b'test'), encoding='ascii') |
| 4038 | t.read(1) |
| 4039 | t.write('x') |
| 4040 | t.tell() |
| 4041 | |
| 4042 | def test_issue35928(self): |
| 4043 | p = self.BufferedRWPair(self.BytesIO(b'foo\nbar\n'), self.BytesIO()) |