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

Method test_buffered_file_io

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

Source from the content-addressed store, hash-verified

599 self.read_ops(f)
600
601 def test_buffered_file_io(self):
602 with self.open(os_helper.TESTFN, "wb") as f:
603 self.assertEqual(f.readable(), False)
604 self.assertEqual(f.writable(), True)
605 self.assertEqual(f.seekable(), True)
606 self.write_ops(f)
607 with self.open(os_helper.TESTFN, "rb") as f:
608 self.assertEqual(f.readable(), True)
609 self.assertEqual(f.writable(), False)
610 self.assertEqual(f.seekable(), True)
611 self.read_ops(f, True)
612
613 def test_readline(self):
614 with self.open(os_helper.TESTFN, "wb") as f:

Callers

nothing calls this directly

Calls 7

write_opsMethod · 0.95
read_opsMethod · 0.95
openMethod · 0.45
assertEqualMethod · 0.45
readableMethod · 0.45
writableMethod · 0.45
seekableMethod · 0.45

Tested by

no test coverage detected