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

Method test_zerosize_accumulate

numpy/core/tests/test_regression.py:1837–1840  ·  view source on GitHub ↗

Ticket #1733

(self)

Source from the content-addressed store, hash-verified

1835 a[()].__class__ # will segfault if object was deleted
1836
1837 def test_zerosize_accumulate(self):
1838 "Ticket #1733"
1839 x = np.array([[42, 0]], dtype=np.uint32)
1840 assert_equal(np.add.accumulate(x[:-1, 0]), [])
1841
1842 def test_objectarray_setfield(self):
1843 # Setfield should not overwrite Object fields with non-Object data

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
accumulateMethod · 0.80

Tested by

no test coverage detected