We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ea41f8 commit 2fc20d8Copy full SHA for 2fc20d8
parsl/tests/test_serialization/test_3495_deserialize_managerlost.py
@@ -5,6 +5,7 @@
5
6
import parsl
7
from parsl import Config, HighThroughputExecutor
8
+from parsl.executors.high_throughput.errors import ManagerLost
9
10
11
@parsl.python_app
@@ -38,9 +39,8 @@ def test_manager_lost_system_failure(tmpd_cwd):
38
39
with parsl.load(c):
40
manager_pgid = get_manager_pgid().result()
41
try:
- lose_manager().result()
42
- except Exception as e:
43
- assert "ManagerLost" not in str(e), f"Issue 3495: {e}"
+ with pytest.raises(ManagerLost):
+ lose_manager().result()
44
finally:
45
# Allow process to clean itself up
46
os.killpg(manager_pgid, signal.SIGCONT)
0 commit comments