fixed bug in tests and removed unused imports

This commit is contained in:
JanLJL
2020-10-28 19:29:48 +01:00
parent 3aea3f2b49
commit 9af689b28c
3 changed files with 2 additions and 6 deletions

View File

@@ -1,6 +1,5 @@
#!/usr/bin/env python3
import base64
import os
import pickle
import re

View File

@@ -1,10 +1,7 @@
#!/usr/bin/env python3
import os.path
from pathlib import Path
import hashlib
DATA_DIRS = [os.path.expanduser('~/.osaca/data'),
os.path.join(os.path.dirname(__file__), 'data')]
DATA_DIRS = [os.path.expanduser('~/.osaca/data'), os.path.join(os.path.dirname(__file__), 'data')]
CACHE_DIR = os.path.expanduser('~/.osaca/cache')

View File

@@ -33,7 +33,7 @@ class TestFrontend(unittest.TestCase):
path_to_yaml=os.path.join(self.MODULE_DATA_DIR, 'csx.yml')
)
self.machine_model_tx2 = MachineModel(
arch='tx2.yml'
arch='tx2'
)
self.semantics_csx = ArchSemantics(
self.machine_model_csx, path_to_yaml=os.path.join(self.MODULE_DATA_DIR, 'isa/x86.yml')