Skip to content

Commit 8e97b8e

Browse files
authored
Update tests/test_pythoncapi_compat_cext.c
1 parent f58daad commit 8e97b8e

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
@@ -1612,11 +1612,11 @@ test_unicode(PyObject *Py_UNUSED(module), PyObject *Py_UNUSED(args))
16121612
PyErr_Clear();
16131613

16141614
// Test PyUnstable_Unicode_GET_CACHED_HASH()
1615-
Py_hash_t hash = PyObject_Hash(abc);
1616-
assert(hash != -1);
16171615
#ifdef PYPY_VERSION
16181616
assert(PyUnstable_Unicode_GET_CACHED_HASH(abc) == -1);
16191617
#else
1618+
Py_hash_t hash = PyObject_Hash(abc);
1619+
assert(hash != -1);
16201620
assert(PyUnstable_Unicode_GET_CACHED_HASH(abc) == hash);
16211621
#endif
16221622

0 commit comments

Comments
 (0)