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

Method test_raw_bytes_io

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

Source from the content-addressed store, hash-verified

641 self.assertRaises(TypeError, R().readlines, 1)
642
643 def test_raw_bytes_io(self):
644 f = self.BytesIO()
645 self.write_ops(f)
646 data = f.getvalue()
647 self.assertEqual(data, b"hello world\n")
648 f = self.BytesIO(data)
649 self.read_ops(f, True)
650
651 def test_large_file_ops(self):
652 # On Windows and Apple platforms this test consumes large resources; It

Callers

nothing calls this directly

Calls 4

write_opsMethod · 0.95
getvalueMethod · 0.95
read_opsMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected