Skip to content

Commit

Permalink
Use identity check instead of equality for comparing boolean value
Browse files Browse the repository at this point in the history
  • Loading branch information
samdoran committed May 30, 2024
1 parent c9c5ab5 commit 157f287
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testing/cffi0/test_zintegration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 157f287

Please sign in to comment.