Skip to content

Commit 2fc20d8

Browse files
authored
Refactor ManagerLost test (#3497)
1 parent 1ea41f8 commit 2fc20d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

parsl/tests/test_serialization/test_3495_deserialize_managerlost.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import parsl
77
from parsl import Config, HighThroughputExecutor
8+
from parsl.executors.high_throughput.errors import ManagerLost
89

910

1011
@parsl.python_app
@@ -38,9 +39,8 @@ def test_manager_lost_system_failure(tmpd_cwd):
3839
with parsl.load(c):
3940
manager_pgid = get_manager_pgid().result()
4041
try:
41-
lose_manager().result()
42-
except Exception as e:
43-
assert "ManagerLost" not in str(e), f"Issue 3495: {e}"
42+
with pytest.raises(ManagerLost):
43+
lose_manager().result()
4444
finally:
4545
# Allow process to clean itself up
4646
os.killpg(manager_pgid, signal.SIGCONT)

0 commit comments

Comments
 (0)