Skip to content

Commit cb021e4

Browse files
tchatoncarmocca
andauthored
Update tests/models/test_restore.py
Co-authored-by: Carlos Mocholí <[email protected]>
1 parent 86bb00e commit cb021e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/models/test_restore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def test_try_resume_from_non_existing_checkpoint(tmpdir):
148148
trainer.fit(model, datamodule=dm)
149149
# `True` if resume/restore successfully else `False`
150150
assert trainer.checkpoint_connector.restore(str(tmpdir / "last.ckpt"), trainer.on_gpu)
151-
with pytest.raises(FileNotFoundError):
151+
with pytest.raises(FileNotFoundError, match="Aborting training"):
152152
trainer.checkpoint_connector.restore(str(tmpdir / "last_non_existing.ckpt"), trainer.on_gpu)
153153

154154

0 commit comments

Comments
 (0)