MCPcopy Create free account
hub / github.com/numpy/numpy / test_fromfile

Method test_fromfile

numpy/core/tests/test_longdouble.py:241–246  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

239 @pytest.mark.skipif(string_to_longdouble_inaccurate,
240 reason="Need strtold_l")
241 def test_fromfile(self):
242 with temppath() as path:
243 with open(path, 'w') as f:
244 f.write(self.out)
245 res = np.fromfile(path, dtype=np.longdouble, sep="\n")
246 assert_equal(res, self.tgt)
247
248 @pytest.mark.skipif(string_to_longdouble_inaccurate,
249 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