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

Method test_void_compare_segfault

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

Source from the content-addressed store, hash-verified

2284 assert_array_equal(np.percentile(np.arange(10), []), np.array([]))
2285
2286 def test_void_compare_segfault(self):
2287 # gh-6922. The following should not segfault
2288 a = np.ones(3, dtype=[('object', 'O'), ('int', '<i2')])
2289 a.sort()
2290
2291 def test_reshape_size_overflow(self):
2292 # gh-7455

Callers

nothing calls this directly

Calls 1

sortMethod · 0.80

Tested by

no test coverage detected