From 650b6e513c39593ac8dec9c9c3388414c9ebe29f Mon Sep 17 00:00:00 2001 From: Eren Dogan Date: Fri, 10 Mar 2023 16:35:22 -0800 Subject: [PATCH] Remove the hack used for unit tests running on docker --- compiler/tests/testutils.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/compiler/tests/testutils.py b/compiler/tests/testutils.py index fcb9a776..a41620c3 100644 --- a/compiler/tests/testutils.py +++ b/compiler/tests/testutils.py @@ -10,21 +10,6 @@ import sys, os, glob import pdb import traceback import time -# FIXME: This is a hack for unit tests running on docker. -try: - import openram -except: - # If openram library isn't found as a python package, - # import it from the $OPENRAM_HOME path. - import importlib.util - OPENRAM_HOME = os.getenv("OPENRAM_HOME") - # Import using spec since the directory can be named something - # other than "openram". - spec = importlib.util.spec_from_file_location("openram", "{}/../__init__.py".format(OPENRAM_HOME)) - module = importlib.util.module_from_spec(spec) - sys.modules["openram"] = module - spec.loader.exec_module(module) - import openram from openram import debug from openram import OPTS