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

Method test_take_object_fail

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

Source from the content-addressed store, hash-verified

750 assert_array_equal(a, b)
751
752 def test_take_object_fail(self):
753 # Issue gh-3001
754 d = 123.
755 a = np.array([d, 1], dtype=object)
756 if HAS_REFCOUNT:
757 ref_d = sys.getrefcount(d)
758 try:
759 a.take([0, 100])
760 except IndexError:
761 pass
762 if HAS_REFCOUNT:
763 assert_(ref_d == sys.getrefcount(d))
764
765 def test_array_str_64bit(self):
766 # Ticket #501

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
takeMethod · 0.80

Tested by

no test coverage detected