Use try: except: to import test utility code

This commit is contained in:
Joakim Hove
2019-10-28 20:16:13 +01:00
parent d382c57145
commit 99e32edd78
8 changed files with 37 additions and 12 deletions

View File

@@ -5,7 +5,10 @@ import sys
from opm.io.parser import Parser, ParseContext
from opm.io.ecl_state import EclipseState
from utils import test_path
try:
from tests.utils import test_path
except ImportError:
from utils import test_path
class TestParse(unittest.TestCase):