From 157f28751d918cd8bc1a803c0b7af9c5839166f4 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Thu, 30 May 2024 16:42:37 -0400 Subject: [PATCH] Use identity check instead of equality for comparing boolean value --- testing/cffi0/test_zintegration.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/cffi0/test_zintegration.py b/testing/cffi0/test_zintegration.py index 693bf1da..a80213e1 100644 --- a/testing/cffi0/test_zintegration.py +++ b/testing/cffi0/test_zintegration.py @@ -188,15 +188,15 @@ def test_set_py_limited_api(): from setuptools import Extension kwds = _set_py_limited_api(Extension, {}) - assert kwds.get('py_limited_api', False) == expecting_limited_api + assert kwds.get('py_limited_api', False) is expecting_limited_api setuptools.__version__ = '25.0' kwds = _set_py_limited_api(Extension, {}) - assert kwds.get('py_limited_api', False) == False + assert kwds.get('py_limited_api', False) is False setuptools.__version__ = 'development' kwds = _set_py_limited_api(Extension, {}) - assert kwds.get('py_limited_api', False) == expecting_limited_api + assert kwds.get('py_limited_api', False) is expecting_limited_api finally: setuptools.__version__ = orig_version