(self)
| 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 |