Use only python3 syntax for import from test directory
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user