diff options
| -rw-r--r-- | numpy/core/tests/test_multiarray.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py index d1246f11c..54386de95 100644 --- a/numpy/core/tests/test_multiarray.py +++ b/numpy/core/tests/test_multiarray.py @@ -7909,10 +7909,12 @@ class TestArrayCreationCopyArgument(object): for copy in self.false_vals: res = np.array(view, copy=copy, order=order2) # res.base.obj refers to the memoryview - assert res is arr or res.base.obj is arr + if not IS_PYPY: + assert res is arr or res.base.obj is arr res = np.array(view, copy=np.CopyMode.NEVER, order=order2) - assert res is arr or res.base.obj is arr + if not IS_PYPY: + assert res is arr or res.base.obj is arr else: for copy in self.false_vals: res = np.array(arr, copy=copy, order=order2) |
