mirror of
https://github.com/python/cpython.git
synced 2025-11-03 07:01:21 +00:00
use assert[Not]In where appropriate
This commit is contained in:
parent
8cd0a66a0f
commit
aa98058cc4
86 changed files with 622 additions and 599 deletions
|
|
@ -141,11 +141,8 @@ def test_harmless_mixed_comparison(self):
|
|||
self.assertFalse(() == me)
|
||||
self.assertTrue(() != me)
|
||||
|
||||
self.assertTrue(me in [1, 20L, [], me])
|
||||
self.assertFalse(me not in [1, 20L, [], me])
|
||||
|
||||
self.assertTrue([] in [me, 1, 20L, []])
|
||||
self.assertFalse([] not in [me, 1, 20L, []])
|
||||
self.assertIn(me, [1, 20L, [], me])
|
||||
self.assertIn([], [me, 1, 20L, []])
|
||||
|
||||
def test_harmful_mixed_comparison(self):
|
||||
me = self.theclass(1, 1, 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue