diff options
author | Juan J. Martinez <jjm@usebox.net> | 2021-10-02 13:37:33 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2021-10-02 13:37:33 +0100 |
commit | 54373248c7000cdad36ab4b9ae2feeb6fb4c70b9 (patch) | |
tree | 6cd96cfb337f223fc3258cfadbbb0b484a7d5260 /tests | |
parent | a0991247ee1c4f6d9b92e79bc7a7f8875aa16350 (diff) | |
download | ubox-msx-lib-54373248c7000cdad36ab4b9ae2feeb6fb4c70b9.tar.gz ubox-msx-lib-54373248c7000cdad36ab4b9ae2feeb6fb4c70b9.zip |
Make the test portable
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_rom.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_rom.py b/tests/test_rom.py index 7ba6992..c378d23 100755 --- a/tests/test_rom.py +++ b/tests/test_rom.py @@ -2,6 +2,7 @@ import unittest import struct +from os import path class TestRom(unittest.TestCase): @@ -11,10 +12,10 @@ class TestRom(unittest.TestCase): @classmethod def setUpClass(cls): - with open("../bin/game.rom", "rb") as fd: + with open(path.join("..", "bin", "game.rom"), "rb") as fd: cls.data = fd.read(cls.ROM_SIZE) - with open("../game/build/game.map", "rb") as fd: + with open(path.join("..", "game", "build", "game.map"), "rb") as fd: game_map = fd.readlines() cls.main_init = 0 |