Skip to content

Commit 7b80a0e

Browse files
committed
fix tests
1 parent df2f6df commit 7b80a0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tests_pytorch/checkpointing/test_model_checkpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1948,7 +1948,7 @@ def test_save_last_every_n_epochs_interaction(tmp_path, every_n_epochs):
19481948
with patch.object(trainer, "save_checkpoint") as save_mock:
19491949
trainer.fit(model)
19501950
assert mc.last_model_path # a "last" ckpt was saved
1951-
assert save_mock.call_count == trainer.max_epochs
1951+
assert save_mock.call_count == trainer.max_epochs - 1
19521952

19531953

19541954
def test_train_epoch_end_ckpt_with_no_validation():

0 commit comments

Comments
 (0)