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

Method test_readinto

Lib/test/_test_eintr.py:160–164  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

158 self.assertEqual(expected, os.read(fd, len(expected)))
159
160 def test_readinto(self):
161 for fd, expected in self._interrupted_reads():
162 buffer = bytearray(len(expected))
163 self.assertEqual(os.readinto(fd, buffer), len(expected))
164 self.assertEqual(buffer, expected)
165
166 def test_write(self):
167 rd, wr = os.pipe()

Callers

nothing calls this directly

Calls 3

_interrupted_readsMethod · 0.95
assertEqualMethod · 0.45
readintoMethod · 0.45

Tested by

no test coverage detected