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

Method test_issue25862

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

readMethod · 0.95
tellMethod · 0.95
writeMethod · 0.95

Tested by

no test coverage detected