MCPcopy Index your code
hub / github.com/python/cpython / test_issue25862

Method test_issue25862

Lib/test/test_io/test_textio.py:1371–1380  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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())

Callers

nothing calls this directly

Calls 3

readMethod · 0.95
tellMethod · 0.95
writeMethod · 0.95

Tested by

no test coverage detected