mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
use assert[Not]In where appropriate
This commit is contained in:
parent
0f77f465ff
commit
b58e0bd8bb
39 changed files with 176 additions and 173 deletions
|
@ -140,10 +140,7 @@ class HarmlessMixedComparison:
|
|||
self.assertTrue(() != me)
|
||||
|
||||
self.assertIn(me, [1, 20, [], me])
|
||||
self.assertFalse(me not in [1, 20, [], me])
|
||||
|
||||
self.assertIn([], [me, 1, 20, []])
|
||||
self.assertFalse([] not in [me, 1, 20, []])
|
||||
|
||||
def test_harmful_mixed_comparison(self):
|
||||
me = self.theclass(1, 1, 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue