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

Method test_fromstring_crash

numpy/core/tests/test_regression.py:1518–1521  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1516 assert_(np.all(b == np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])))
1517
1518 def test_fromstring_crash(self):
1519 # Ticket #1345: the following should not cause a crash
1520 with assert_warns(DeprecationWarning):
1521 np.fromstring(b'aa, aa, 1.0', sep=',')
1522
1523 def test_ticket_1539(self):
1524 dtypes = [x for x in np.sctypeDict.values()

Callers

nothing calls this directly

Calls 2

assert_warnsFunction · 0.90
fromstringMethod · 0.80

Tested by

no test coverage detected