Skip to content

Commit 4f5aa3a

Browse files
committed
Update Tests
1 parent ff1a6b8 commit 4f5aa3a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libensemble/tests/unit_tests/test_executor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -909,8 +909,8 @@ def test_non_existent_app():
909909

910910
try:
911911
w_exctr.submit(app_name="nonexist")
912-
except ExecutorException as e:
913-
assert e.args[0] == "Application does not exist simdir/non_exist.x"
912+
except FileNotFoundError as e:
913+
assert e.filename == "simdir/non_exist.x"
914914
else:
915915
assert 0
916916

@@ -930,8 +930,8 @@ def test_non_existent_app_mpi():
930930

931931
try:
932932
w_exctr.submit(app_name="nonexist")
933-
except ExecutorException as e:
934-
assert e.args[0] == "Application does not exist simdir/non_exist.x"
933+
except MPIResourcesException as e:
934+
pass
935935
else:
936936
assert 0
937937

0 commit comments

Comments
 (0)