Use only python3 syntax for import from test directory

This commit is contained in:
Joakim Hove
2021-11-11 08:22:49 +01:00
parent 90e55025d6
commit 55eeabba42
5 changed files with 7 additions and 21 deletions

View File

@@ -3,10 +3,7 @@ import sys
import numpy as np
from opm.io.ecl import EclFile, eclArrType
try:
from tests.utils import test_path
except ImportError:
from utils import test_path
from .utils import test_path

View File

@@ -4,12 +4,8 @@ import numpy as np
import datetime
from opm.io.ecl import ERft, eclArrType
try:
from tests.utils import test_path
except ImportError:
from utils import test_path
from .utils import test_path
class TestEclFile(unittest.TestCase):

View File

@@ -4,10 +4,8 @@ import numpy as np
import io
from opm.io.ecl import ERst, eclArrType, EclOutput
try:
from tests.utils import test_path
except ImportError:
from utils import test_path
from .utils import test_path
class TestERst(unittest.TestCase):

View File

@@ -4,10 +4,7 @@ import numpy as np
import datetime
from opm.io.ecl import ESmry
try:
from tests.utils import test_path
except ImportError:
from utils import test_path
from .utils import test_path
class TestEclFile(unittest.TestCase):

View File

@@ -8,10 +8,8 @@ from opm.io.parser import Builtin
from opm.io.parser import Parser
from opm.io.parser import ParseContext
from opm.io.deck import DeckKeyword
try:
from tests.utils import test_path
except ImportError:
from utils import test_path
from .utils import test_path
unit_foot = 0.3048 #meters