1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-12-29 06:29:48 +00:00

Use a list comprehension to collect valid_modes

This commit is contained in:
Mike Naberezny 2013-10-26 15:51:56 -07:00
parent f43a4c2048
commit 8a3bdd7870

View File

@ -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)