Skip to content

Commit d20d7f8

Browse files
authored
Fix incorrect use of assignment in place of an equality test. (#108)
1 parent 2d18aec commit d20d7f8

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
@@ -1662,7 +1662,7 @@ check_get_constant(PyObject* (*get_constant)(unsigned int), int borrowed)
16621662

16631663
// Py_CONSTANT_FALSE
16641664
obj = get_constant(Py_CONSTANT_FALSE);
1665-
assert(obj = Py_False);
1665+
assert(obj == Py_False);
16661666
CLEAR(obj);
16671667

16681668
// Py_CONSTANT_TRUE

0 commit comments

Comments
 (0)