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