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

Method test_raw_bytes_io

Lib/test/test_io/test_general.py:338–344  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

336 self.assertRaises(TypeError, R().readlines, 1)
337
338 def test_raw_bytes_io(self):
339 f = self.BytesIO()
340 self.write_ops(f)
341 data = f.getvalue()
342 self.assertEqual(data, b"hello world\n")
343 f = self.BytesIO(data)
344 self.read_ops(f, True)
345
346 def test_large_file_ops(self):
347 # 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