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

Method test_loadtxt

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

Source from the content-addressed store, hash-verified

257 @pytest.mark.skipif(string_to_longdouble_inaccurate,
258 reason="Need strtold_l")
259 def test_loadtxt(self):
260 with temppath() as path:
261 with open(path, 'w') as f:
262 f.write(self.out)
263 res = np.loadtxt(path, dtype=np.longdouble)
264 assert_equal(res, self.tgt)
265
266 @pytest.mark.skipif(string_to_longdouble_inaccurate,
267 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