Skip to content

Commit 3549902

Browse files
committed
linting
1 parent 6c7b6f2 commit 3549902

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/_core/tests/test_multiarray.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8490,7 +8490,7 @@ def __array__(self, dtype=None):
84908490
# As of NumPy 2.1, explicitly passing copy=True does trigger passing
84918491
# it to __array__ (deprecation warning is triggered).
84928492
with pytest.warns(DeprecationWarning,
8493-
match="__array__.*should implement.*'copy'"):
8493+
match="__array__.*must implement.*'copy'"):
84948494
arr = np.array(a, copy=True)
84958495
assert_array_equal(arr, base_arr)
84968496
assert arr is not base_arr
@@ -8535,7 +8535,7 @@ def __array__(self, dtype=None, copy=None):
85358535
arr_random = ArrayRandom()
85368536
second_copy = np.array(arr_random, copy=True, order="F")
85378537
assert arr_random.true_passed
8538-
assert not second_copy is copy_arr
8538+
assert second_copy is not copy_arr
85398539

85408540
@pytest.mark.skipif(not HAS_REFCOUNT, reason="Python lacks refcounts")
85418541
def test__array__reference_leak(self):

0 commit comments

Comments
 (0)