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

Function test_fromstring_bogus

numpy/core/tests/test_longdouble.py:124–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122
123
124def test_fromstring_bogus():
125 with assert_warns(DeprecationWarning):
126 assert_equal(np.fromstring("1. 2. 3. flop 4.", dtype=float, sep=" "),
127 np.array([1., 2., 3.]))
128
129
130def test_fromstring_empty():

Callers

nothing calls this directly

Calls 3

assert_warnsFunction · 0.90
assert_equalFunction · 0.90
fromstringMethod · 0.80

Tested by

no test coverage detected