From 9af689b28caf7331bef57b547c9bf70a8eda2309 Mon Sep 17 00:00:00 2001 From: JanLJL Date: Wed, 28 Oct 2020 19:29:48 +0100 Subject: [PATCH] fixed bug in tests and removed unused imports --- osaca/semantics/hw_model.py | 1 - osaca/utils.py | 5 +---- tests/test_frontend.py | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/osaca/semantics/hw_model.py b/osaca/semantics/hw_model.py index 6e55cc1..d1863c2 100755 --- a/osaca/semantics/hw_model.py +++ b/osaca/semantics/hw_model.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -import base64 import os import pickle import re diff --git a/osaca/utils.py b/osaca/utils.py index 36529e3..53ff292 100644 --- a/osaca/utils.py +++ b/osaca/utils.py @@ -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') diff --git a/tests/test_frontend.py b/tests/test_frontend.py index f185a03..9c2ef46 100755 --- a/tests/test_frontend.py +++ b/tests/test_frontend.py @@ -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')