Skip to content

Commit 47c0656

Browse files
committed
Test pypy3.10
1 parent 92412c9 commit 47c0656

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
- "pypy3.7"
4343
- "pypy3.8"
4444
- "pypy3.9"
45+
- "pypy3.10"
4546

4647
# Old PyPy versions
4748
# See https://foss.heptapod.net/pypy/pypy/-/issues/3991

pythoncapi_compat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ _Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt)
116116
#if PY_VERSION_HEX < 0x030A00B1 && !defined(Py_IsNone)
117117
# define Py_IsNone(x) Py_Is(x, Py_None)
118118
#endif
119-
#if PY_VERSION_HEX < 0x030A00B1 && !defined(Py_IsTrue)
119+
#if (PY_VERSION_HEX < 0x030A00B1 || defined(PYPY_VERSION)) && !defined(Py_IsTrue)
120120
# define Py_IsTrue(x) Py_Is(x, Py_True)
121121
#endif
122-
#if PY_VERSION_HEX < 0x030A00B1 && !defined(Py_IsFalse)
122+
#if (PY_VERSION_HEX < 0x030A00B1 || defined(PYPY_VERSION)) && !defined(Py_IsFalse)
123123
# define Py_IsFalse(x) Py_Is(x, Py_False)
124124
#endif
125125

runtests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"pypy3.7",
5050
"pypy3.8",
5151
"pypy3.9",
52+
"pypy3.10",
5253
)
5354

5455

0 commit comments

Comments
 (0)