MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_issue35928

Method test_issue35928

Lib/test/test_io.py:4042–4048  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4040 t.tell()
4041
4042 def test_issue35928(self):
4043 p = self.BufferedRWPair(self.BytesIO(b'foo\nbar\n'), self.BytesIO())
4044 f = self.TextIOWrapper(p)
4045 res = f.readline()
4046 self.assertEqual(res, 'foo\n')
4047 f.write(res)
4048 self.assertEqual(res + f.readline(), 'foo\nbar\n')
4049
4050 def test_pickling_subclass(self):
4051 global MyTextIO

Callers

nothing calls this directly

Calls 3

readlineMethod · 0.95
writeMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected