Skip to content

Commit 8906e8f

Browse files
committed
debugged test_helpers
1 parent fe41b99 commit 8906e8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydra/engine/tests/test_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ def test_load_and_run_exception_run(tmpdir):
209209
exc_msg = excinfo.value.args[0]
210210
assert "i'm raising an exception!" in exc_msg
211211
# checking if the crashfile has been created
212-
assert "crash" in exc_msg
213-
errorfile = Path(exc_msg.split("here: ")[1][:-2])
212+
assert "crash" in excinfo.value.__notes__[0]
213+
errorfile = Path(excinfo.value.__notes__[0].split("here: ")[1])
214214
assert errorfile.exists()
215215

216216
resultfile = errorfile.parent / "_result.pklz"

0 commit comments

Comments
 (0)