summaryrefslogtreecommitdiff
path: root/numpy/core/tests
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2019-09-04 10:42:22 +0200
committermattip <matti.picus@gmail.com>2019-09-04 10:46:58 +0200
commit5f4f7837941f14aa6388d889518be3dfd3872747 (patch)
treeaf0d92f7e2b4840a342ddee95b6ee66bfec46fd2 /numpy/core/tests
parentfa0337900b7b96936b0c9562864f286e37a97ff1 (diff)
downloadnumpy-5f4f7837941f14aa6388d889518be3dfd3872747.tar.gz
Apply suggestions from code review
Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
Diffstat (limited to 'numpy/core/tests')
-rw-r--r--numpy/core/tests/test_regression.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py
index 54e61662b..cbd4ceafc 100644
--- a/numpy/core/tests/test_regression.py
+++ b/numpy/core/tests/test_regression.py
@@ -2502,10 +2502,11 @@ class TestRegression(object):
np.array([t])
@pytest.mark.skipif(sys.maxsize < 2 ** 31 + 1, reason='overflows 32-bit python')
- @pytest.mark.skipif(sys.platform == 'win32', reason='overflows on windows')
+ @pytest.mark.skipif(sys.platform == 'win32' and sys.version_info[:2] < (3, 8),
+ reason='overflows on windows, fixed in bpo-16865')
def test_to_ctypes(self):
#gh-14214
arr = np.zeros((2 ** 31 + 1,), 'b')
- assert(arr.size * arr.itemsize > 2 ** 31)
+ assert arr.size * arr.itemsize > 2 ** 31
c_arr = np.ctypeslib.as_ctypes(arr)
assert_equal(c_arr._length_, arr.size)