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

Method test_fromstring_crash

numpy/_core/tests/test_regression.py:1507–1509  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1505 assert_(np.all(b == np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])))
1506
1507 def test_fromstring_crash(self):
1508 with assert_raises(ValueError):
1509 np.fromstring(b'aa, aa, 1.0', sep=',')
1510
1511 def test_ticket_1539(self):
1512 dtypes = [x for x in np._core.sctypeDict.values()

Callers

nothing calls this directly

Calls 2

assert_raisesFunction · 0.90
fromstringMethod · 0.80

Tested by

no test coverage detected