8000 debug · python/pythoncapi-compat@8ebca0d · GitHub
[go: up one dir, main page]

Skip to content

Commit 8ebca0d

Browse files
committed
debug
1 parent cf48c37 commit 8ebca0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_pythoncapi_compat_cext.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,8 @@ test_hash(PyObject *Py_UNUSED(module), PyObject *Py_UNUSED(args))
15221522
assert(Py_HashPointer(ptr1) == (Py_hash_t)ptr1);
15231523
#endif
15241524

1525-
#if PY_VERSION_HEX >= 0x030400B1
1525+
#if ((!defined(PYPY_VERSION) && PY_VERSION_HEX >= 0x030400B1) \
1526+
|| (defined(PYPY_VERSION) && PY_VERSION_HEX >= 0x03070000 && PYPY_VERSION_NUM >= 0x07090000))
15261527
// Just check that constants are available
15271528
size_t bits = PyHASH_BITS;
15281529
assert(bits >= 8);

0 commit comments

Comments
 (0)
0