Skip to content

Commit 8cabe0d

Browse files
committed
fix logic
1 parent 9898e98 commit 8cabe0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_pythoncapi_compat_cext.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,8 +1432,8 @@ test_long_api(PyObject *Py_UNUSED(module), PyObject *Py_UNUSED(args))
14321432

14331433
// --- HeapCTypeWithManagedDict --------------------------------------------
14341434

1435-
// Py_TPFLAGS_MANAGED_DICT was added to Python 3.11.0a3 but is very much an implementation detail
1436-
#if PY_VERSION_HEX >= 0x030B00A3 || ! defined(PYPY_VERSION)
1435+
// Py_TPFLAGS_MANAGED_DICT was added to Python 3.11.0a3 but is not implemented on PyPy
1436+
#if PY_VERSION_HEX >= 0x030B00A3 && ! defined(PYPY_VERSION)
14371437
# define TEST_MANAGED_DICT
14381438

14391439
typedef struct {

0 commit comments

Comments
 (0)