Skip to content

Commit 396930e

Browse files
committed
Fix test on PyPy 2.7
1 parent ff5b376 commit 396930e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_pythoncapi_compat_cext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2420,7 +2420,7 @@ test_tuple_fromarray(void)
24202420
if (tuple == NULL) {
24212421
return NULL;
24222422
}
2423-
assert(tuple == Py_GetConstantBorrowed(Py_CONSTANT_EMPTY_TUPLE));
2423+
assert(PyTuple_GET_SIZE(tuple) == 0);
24242424
Py_DECREF(tuple);
24252425

24262426
Py_RETURN_NONE;

0 commit comments

Comments
 (0)