summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build_test.yml2
-rw-r--r--numpy/core/src/multiarray/compiled_base.c2
-rw-r--r--test_requirements.txt2
3 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml
index d38ae0934..21d9227eb 100644
--- a/.github/workflows/build_test.yml
+++ b/.github/workflows/build_test.yml
@@ -184,7 +184,7 @@ jobs:
fetch-depth: 0
- name: get_pypy
run: |
- wget -q https://downloads.python.org/pypy/pypy3.6-v7.3.2-linux64.tar.bz2 -O pypy.tar.bz2
+ wget -q https://downloads.python.org/pypy/pypy3.7-v7.3.3-linux64.tar.bz2 -O pypy.tar.bz2
mkdir -p pypy3
(cd pypy3; tar --strip-components=1 -xf ../pypy.tar.bz2)
pypy3/bin/pypy3 -mensurepip
diff --git a/numpy/core/src/multiarray/compiled_base.c b/numpy/core/src/multiarray/compiled_base.c
index 061db2250..8ab592015 100644
--- a/numpy/core/src/multiarray/compiled_base.c
+++ b/numpy/core/src/multiarray/compiled_base.c
@@ -1420,7 +1420,7 @@ arr_add_docstring(PyObject *NPY_UNUSED(dummy), PyObject *args)
{
PyObject *obj;
PyObject *str;
- #if (PY_VERSION_HEX >= 0x030700A2)
+ #if PY_VERSION_HEX >= 0x030700A2 && (!defined(PYPY_VERSION_NUM) || PYPY_VERSION_NUM > 0x07030300)
const char *docstr;
#else
char *docstr;
diff --git a/test_requirements.txt b/test_requirements.txt
index 33d87b3a9..2ca10be5d 100644
--- a/test_requirements.txt
+++ b/test_requirements.txt
@@ -5,7 +5,7 @@ hypothesis==5.41.3
pytest==6.0.2
pytz==2020.4
pytest-cov==2.10.1
-pickle5; python_version == '3.7'
+pickle5; python_version == '3.7' and platform_python_implementation != 'PyPy'
pickle5; python_version == '3.6' and platform_python_implementation != 'PyPy'
# for numpy.random.test.test_extending
cffi