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

Method test_fromfile_bogus

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

Source from the content-addressed store, hash-verified

141 out = ''.join([str(t) + '\n' for t in tgt])
142
143 def test_fromfile_bogus(self):
144 with temppath() as path:
145 with open(path, 'w') as f:
146 f.write("1. 2. 3. flop 4.\n")
147
148 with assert_raises(ValueError):
149 np.fromfile(path, dtype=float, sep=" ")
150
151 def test_fromfile_complex(self):
152 for ctype in ["complex", "cdouble"]:

Callers

nothing calls this directly

Calls 4

temppathFunction · 0.90
assert_raisesFunction · 0.90
openFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected