From 315010149a085cba4b0395df0184e67c2e976a9d Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sun, 4 Dec 2016 23:05:42 -0700 Subject: TST: Fix tests in PR #8341 for NumPy 1.11.x gh-8341 was a backport and the tests were fixed for pypy, but the corresponding constant PYPY is undefined in 1.11.x. --- numpy/core/tests/test_multiarray.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py index 7e3d1b7d0..b896e2161 100644 --- a/numpy/core/tests/test_multiarray.py +++ b/numpy/core/tests/test_multiarray.py @@ -3991,10 +3991,7 @@ class TestResize(TestCase): def test_int_shape(self): x = np.eye(3) - if IS_PYPY: - x.resize(3, refcheck=False) - else: - x.resize(3) + x.resize(3) assert_array_equal(x, np.eye(3)[0,:]) def test_none_shape(self): @@ -4017,10 +4014,7 @@ class TestResize(TestCase): def test_zeros_appended(self): x = np.eye(3) - if IS_PYPY: - x.resize(2, 3, 3, refcheck=False) - else: - x.resize(2, 3, 3) + x.resize(2, 3, 3) assert_array_equal(x[0], np.eye(3)) assert_array_equal(x[1], np.zeros((3, 3))) -- cgit v1.2.1