Skip to content

Commit 83a0faf

Browse files
committed
Clear warning cache before testing
1 parent 1db9707 commit 83a0faf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/deprecated_api/test_remove_1-4.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ def test_v1_4_0_deprecated_lightning_data_parallel():
192192

193193

194194
def test_v1_4_0_deprecated_checkpoint_on(tmpdir):
195+
from pytorch_lightning.callbacks.model_checkpoint import warning_cache
196+
warning_cache.clear()
197+
195198
class TestModel(BoringModel):
196199
def training_step(self, batch, batch_idx):
197200
self.log("val_loss", -batch_idx)

0 commit comments

Comments
 (0)