From 37240ba2e638c02d55693ffcc9f2ce98c5407da3 Mon Sep 17 00:00:00 2001 From: Peter Hawkins Date: Mon, 23 Sep 2024 15:14:49 +0000 Subject: [PATCH] Fix incorrect use of assignment in place of an equality test. --- tests/test_pythoncapi_compat_cext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_pythoncapi_compat_cext.c b/tests/test_pythoncapi_compat_cext.c index f813548..5cf0f45 100644 --- a/tests/test_pythoncapi_compat_cext.c +++ b/tests/test_pythoncapi_compat_cext.c @@ -1662,7 +1662,7 @@ check_get_constant(PyObject* (*get_constant)(unsigned int), int borrowed) // Py_CONSTANT_FALSE obj = get_constant(Py_CONSTANT_FALSE); - assert(obj = Py_False); + assert(obj == Py_False); CLEAR(obj); // Py_CONSTANT_TRUE pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy