Replace windows path separators in GDFILE keyword
This commit is contained in:
@@ -28,7 +28,7 @@ class TestEclFile(unittest.TestCase):
|
||||
"PERMX","PERMY", "PERMZ","NTG","TRANX","TRANY","TRANZ","TABDIMS","TAB",
|
||||
"ACTNUM","EQLNUM","FIPNUM","PVTNUM","SATNUM","TRANNNC"]
|
||||
|
||||
self.assertRaises(ValueError, EclFile, "/file/that/does_not_exists")
|
||||
self.assertRaises(RuntimeError, EclFile, "/file/that/does_not_exists")
|
||||
|
||||
file2uf = EclFile(test_path("data/SPE9.INIT"), preload=False)
|
||||
self.assertEqual(len(file2uf), 24)
|
||||
|
||||
@@ -15,7 +15,7 @@ class TestEGrid(unittest.TestCase):
|
||||
|
||||
def test_ijk_active_and_global_indices(self):
|
||||
|
||||
with self.assertRaises(ValueError):
|
||||
with self.assertRaises(RuntimeError):
|
||||
EGrid("/file/that/does_not_exists")
|
||||
|
||||
grid1 = EGrid(test_path("data/9_EDITNNC.EGRID"))
|
||||
|
||||
@@ -22,7 +22,7 @@ class TestEclFile(unittest.TestCase):
|
||||
('PROD', (2017, 7, 31), 942.0) ]
|
||||
|
||||
|
||||
with self.assertRaises(ValueError):
|
||||
with self.assertRaises(RuntimeError):
|
||||
ERft("/file/that/does_not_exists")
|
||||
|
||||
rft1 = ERft(test_path("data/SPE1CASE1.RFT"))
|
||||
|
||||
@@ -15,7 +15,7 @@ class TestEclFile(unittest.TestCase):
|
||||
|
||||
def test_base_runs(self):
|
||||
|
||||
with self.assertRaises(ValueError):
|
||||
with self.assertRaises(RuntimeError):
|
||||
ESmry("/file/that/does_not_exists")
|
||||
|
||||
smry1 = ESmry(test_path("data/SPE1CASE1.SMSPEC"))
|
||||
|
||||
Reference in New Issue
Block a user