mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +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
|
@ -118,8 +118,8 @@ class DisTests(unittest.TestCase):
|
|||
|
||||
def test_opmap(self):
|
||||
self.assertEqual(dis.opmap["STOP_CODE"], 0)
|
||||
self.assertEqual(dis.opmap["LOAD_CONST"] in dis.hasconst, True)
|
||||
self.assertEqual(dis.opmap["STORE_NAME"] in dis.hasname, True)
|
||||
self.assertIn(dis.opmap["LOAD_CONST"], dis.hasconst)
|
||||
self.assertIn(dis.opmap["STORE_NAME"], dis.hasname)
|
||||
|
||||
def test_opname(self):
|
||||
self.assertEqual(dis.opname[dis.opmap["LOAD_FAST"]], "LOAD_FAST")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue