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

Method test_take_object_fail

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

Source from the content-addressed store, hash-verified

737 assert_array_equal(a, b)
738
739 def test_take_object_fail(self):
740 # Issue gh-3001
741 d = 123.
742 a = np.array([d, 1], dtype=object)
743 if HAS_REFCOUNT:
744 ref_d = sys.getrefcount(d)
745 try:
746 a.take([0, 100])
747 except IndexError:
748 pass
749 if HAS_REFCOUNT:
750 assert_(ref_d == sys.getrefcount(d))
751
752 def test_array_str_64bit(self):
753 # Ticket #501

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
takeMethod · 0.80

Tested by

no test coverage detected