mirror of
https://github.com/mnaberez/py65.git
synced 2024-12-28 15:29:40 +00:00
Use a list comprehension to collect valid_modes
This commit is contained in:
parent
f43a4c2048
commit
8a3bdd7870
@ -5540,8 +5540,7 @@ class Common6502Tests:
|
||||
self.assertEqual(0x0001, mpu.pc)
|
||||
|
||||
def test_decorated_addressing_modes_are_valid(self):
|
||||
valid_modes = map(lambda x: x[0],
|
||||
py65.assembler.Assembler.Addressing)
|
||||
valid_modes = [x[0] for x in py65.assembler.Assembler.Addressing]
|
||||
mpu = self._make_mpu()
|
||||
for name, mode in mpu.disassemble:
|
||||
self.assertTrue(mode in valid_modes)
|
||||
|
Loading…
Reference in New Issue
Block a user