Skip to content

Commit

Permalink
Update tests/models/test_restore.py
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
  • Loading branch information
tchaton and carmocca authored Apr 19, 2021
1 parent 86bb00e commit cb021e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/models/test_restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def test_try_resume_from_non_existing_checkpoint(tmpdir):
trainer.fit(model, datamodule=dm)
# `True` if resume/restore successfully else `False`
assert trainer.checkpoint_connector.restore(str(tmpdir / "last.ckpt"), trainer.on_gpu)
with pytest.raises(FileNotFoundError):
with pytest.raises(FileNotFoundError, match="Aborting training"):
trainer.checkpoint_connector.restore(str(tmpdir / "last_non_existing.ckpt"), trainer.on_gpu)


Expand Down

0 comments on commit cb021e4

Please sign in to comment.