Skip to content

Commit

Permalink
Don't use stupid Py_Is
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroIntensity committed Feb 15, 2025
1 parent aac8760 commit 90a713a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ _Test_RunAndCheck(
return NULL;
}
Py_DECREF(awaitable);
if (!Py_Is(res, expected)) {
if (res != expected) {
PyErr_Format(
PyExc_AssertionError,
"test %s at %s:%d expected awaitable to return %R, got %R",
Expand Down

0 comments on commit 90a713a

Please sign in to comment.