mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
[3.9] bpo-45060: Get rid of few uses of the equality operators with None (GH-28087). (GH-28093)
(cherry picked from commit 3c65457156
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
e527f79fa8
commit
e09dd8aafd
7 changed files with 11 additions and 11 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