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

Method check

Lib/test/test_io/test_general.py:460–463  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

458 a = array.array('i', range(10))
459 n = len(a.tobytes())
460 def check(f):
461 with f:
462 self.assertEqual(f.write(a), n)
463 f.writelines((a,))
464 check(self.BytesIO())
465 check(self.FileIO(os_helper.TESTFN, "w"))
466 check(self.BufferedWriter(self.MockRawIO()))

Callers

nothing calls this directly

Calls 3

assertEqualMethod · 0.45
writeMethod · 0.45
writelinesMethod · 0.45

Tested by

no test coverage detected