| 1369 | self.assertEqual(txt.detach().getvalue().decode('ascii'), expected) |
| 1370 | |
| 1371 | def test_issue25862(self): |
| 1372 | # Assertion failures occurred in tell() after read() and write(). |
| 1373 | t = self.TextIOWrapper(self.BytesIO(b'test'), encoding='ascii') |
| 1374 | t.read(1) |
| 1375 | t.read() |
| 1376 | t.tell() |
| 1377 | t = self.TextIOWrapper(self.BytesIO(b'test'), encoding='ascii') |
| 1378 | t.read(1) |
| 1379 | t.write('x') |
| 1380 | t.tell() |
| 1381 | |
| 1382 | def test_issue35928(self): |
| 1383 | p = self.BufferedRWPair(self.BytesIO(b'foo\nbar\n'), self.BytesIO()) |