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

Method test_issue35928

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

Source from the content-addressed store, hash-verified

1380 t.tell()
1381
1382 def test_issue35928(self):
1383 p = self.BufferedRWPair(self.BytesIO(b'foo\nbar\n'), self.BytesIO())
1384 f = self.TextIOWrapper(p)
1385 res = f.readline()
1386 self.assertEqual(res, 'foo\n')
1387 f.write(res)
1388 self.assertEqual(res + f.readline(), 'foo\nbar\n')
1389
1390 def test_pickling_subclass(self):
1391 global MyTextIO

Callers

nothing calls this directly

Calls 3

readlineMethod · 0.95
writeMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected