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

Method test_buffered_file_io

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

Source from the content-addressed store, hash-verified

294 self.read_ops(f)
295
296 def test_buffered_file_io(self):
297 with self.open(os_helper.TESTFN, "wb") as f:
298 self.assertEqual(f.readable(), False)
299 self.assertEqual(f.writable(), True)
300 self.assertEqual(f.seekable(), True)
301 self.write_ops(f)
302 with self.open(os_helper.TESTFN, "rb") as f:
303 self.assertEqual(f.readable(), True)
304 self.assertEqual(f.writable(), False)
305 self.assertEqual(f.seekable(), True)
306 self.read_ops(f, True)
307
308 def test_readline(self):
309 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