8000 gh-115808: Add ``is_none`` and ``is_not_none`` operators by ThexXTURBOXx · Pull Request #115814 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-115808: Add is_none and is_not_none operators #115814

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Aug 10, 2024
Merged
Prev Previous commit
Next Next commit
Cleanup test for is_none
  • Loading branch information
ThexXTURBOXx committed Mar 4, 2024
commit 8661aec310db39e991144e97d9379e2adbece90a
2 changes: 1 addition & 1 deletion Lib/test/test_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def test_is_none(self):
b = None
self.assertRaises(TypeError, operator.is_none)
self.assertFalse(operator.is_none(a))
self.assertTrue(operator.is_none(None))
self.assertTrue(operator.is_none(b))

def test_is(self):
operator = self.module
Expand Down
0