From 4328a0b43a6ab7ee6fd1781a2e442567eb20af60 Mon Sep 17 00:00:00 2001 From: Pedro de Medeiros Date: Sat, 2 Oct 2021 14:23:30 -0300 Subject: Read ROM file entirely, otherwise we are not really checking ROM size. --- tests/test_rom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_rom.py') diff --git a/tests/test_rom.py b/tests/test_rom.py index 657a161..a2148e1 100755 --- a/tests/test_rom.py +++ b/tests/test_rom.py @@ -13,7 +13,7 @@ class TestRom(unittest.TestCase): @classmethod def setUpClass(cls): with open(path.join("..", "bin", "game.rom"), "rb") as fd: - cls.data = fd.read(cls.ROM_SIZE) + cls.data = fd.read() with open(path.join("..", "game", "build", "game.map"), "rb") as fd: game_map = fd.readlines() -- cgit v1.2.3