diff options
| author | czgdp1807 <gdp.1807@gmail.com> | 2021-06-10 09:04:44 +0530 |
|---|---|---|
| committer | czgdp1807 <gdp.1807@gmail.com> | 2021-06-10 09:04:44 +0530 |
| commit | 782d823301ac932ce0a41b816403b83cce54d20b (patch) | |
| tree | d35b2cf0a9ea84b4d081c9cee0184cf84e23df02 | |
| parent | ab01330d16ec77c2bc232ce696ce3ab2be9e51d0 (diff) | |
| download | numpy-782d823301ac932ce0a41b816403b83cce54d20b.tar.gz | |
fixed PYPY errors
| -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) |
