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 86bb00e commit cb021e4Copy full SHA for cb021e4
tests/models/test_restore.py
@@ -148,7 +148,7 @@ def test_try_resume_from_non_existing_checkpoint(tmpdir):
148
trainer.fit(model, datamodule=dm)
149
# `True` if resume/restore successfully else `False`
150
assert trainer.checkpoint_connector.restore(str(tmpdir / "last.ckpt"), trainer.on_gpu)
151
- with pytest.raises(FileNotFoundError):
+ with pytest.raises(FileNotFoundError, match="Aborting training"):
152
trainer.checkpoint_connector.restore(str(tmpdir / "last_non_existing.ckpt"), trainer.on_gpu)
153
154
0 commit comments