MCPcopy
hub / github.com/pytest-dev/pytest / read_binary

Method read_binary

src/_pytest/_py/path.py:362–365  ·  src/_pytest/_py/path.py::LocalPath.read_binary

Read and return a bytestring from reading the path.

(self)

Source from the content-addressed store, hash-verified

360 return self._getbyspec(class="st">"ext")[0]
361
362 def read_binary(self):
363 class="st">""class="st">"Read and return a bytestring from reading the path."class="st">""
364 with self.open(class="st">"rb") as f:
365 return f.read()
366
367 def read_text(self, encoding):
368 class="st">""class="st">"Read and return a Unicode string from reading the path."class="st">""

Callers 3

test_atimeMethod · 0.80
test_read_binwriteMethod · 0.80
test_read_textwriteMethod · 0.80

Calls 2

openMethod · 0.95
readMethod · 0.45

Tested by 3

test_atimeMethod · 0.64
test_read_binwriteMethod · 0.64
test_read_textwriteMethod · 0.64