MCPcopy Index your code
hub / github.com/numpy/numpy / test_fromfile

Method test_fromfile

numpy/_core/tests/test_longdouble.py:227–232  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

225 @pytest.mark.skipif(string_to_longdouble_inaccurate,
226 reason="Need strtold_l")
227 def test_fromfile(self):
228 with temppath() as path:
229 with open(path, 'w') as f:
230 f.write(self.out)
231 res = np.fromfile(path, dtype=np.longdouble, sep="\n")
232 assert_equal(res, self.tgt)
233
234 @pytest.mark.skipif(string_to_longdouble_inaccurate,
235 reason="Need strtold_l")

Callers

nothing calls this directly

Calls 4

temppathFunction · 0.90
assert_equalFunction · 0.90
openFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected