Skip to content

Commit 5e37e07

Browse files
committed
Rephrasee comments
1 parent 86cf068 commit 5e37e07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tests_pytorch/checkpointing/test_model_checkpoint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,9 +1669,9 @@ def val_dataloader(self) -> DataLoader:
16691669

16701670

16711671
def test_save_last_without_save_on_train_epoch_and_without_val(tmp_path):
1672-
"""Test that save_last=True when save_on_train_epoch_end=False."""
1672+
"""Test that save_last=True works correctly when save_on_train_epoch_end=False in a model without validation."""
16731673

1674-
# Remove validation methods to reproduce the bug
1674+
# Remove validation methods to test the edge case
16751675
model = BoringModel()
16761676
model.validation_step = None
16771677
model.val_dataloader = None

0 commit comments

Comments
 (0)