mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
[3.10] bpo-45060: Get rid of few uses of the equality operators with None (GH-28087). (GH-28092)
(cherry picked from commit 3c65457156
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
2a8956c268
commit
e2b2930413
9 changed files with 13 additions and 13 deletions
|
@ -344,7 +344,7 @@ class TestTimeZone(unittest.TestCase):
|
|||
with self.assertRaises(TypeError): timezone(ZERO) < timezone(ZERO)
|
||||
self.assertIn(timezone(ZERO), {timezone(ZERO)})
|
||||
self.assertTrue(timezone(ZERO) != None)
|
||||
self.assertFalse(timezone(ZERO) == None)
|
||||
self.assertFalse(timezone(ZERO) == None)
|
||||
|
||||
tz = timezone(ZERO)
|
||||
self.assertTrue(tz == ALWAYS_EQ)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue