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

Method check

Lib/test/test_io.py:765–768  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

763 a = array.array('i', range(10))
764 n = len(a.tobytes())
765 def check(f):
766 with f:
767 self.assertEqual(f.write(a), n)
768 f.writelines((a,))
769 check(self.BytesIO())
770 check(self.FileIO(os_helper.TESTFN, "w"))
771 check(self.BufferedWriter(self.MockRawIO()))

Callers 2

verify_tabnanny_checkMethod · 0.45

Calls 3

assertEqualMethod · 0.45
writeMethod · 0.45
writelinesMethod · 0.45

Tested by

no test coverage detected