Skip to content

Commit 14b4b7b

Browse files
committed
defaults
1 parent 9d0c9fe commit 14b4b7b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/checkpointing/test_model_checkpoint.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -516,13 +516,9 @@ def test_invalid_every_n_epoch(tmpdir):
516516

517517
def test_invalid_every_n_batches(tmpdir):
518518
""" Test that an exception is raised for every_n_batches = 0 or < -1. """
519-
with pytest.raises(
520-
MisconfigurationException, match=r'Invalid value for every_n_batches=0*'
521-
):
519+
with pytest.raises(MisconfigurationException, match=r'Invalid value for every_n_batches=0*'):
522520
ModelCheckpoint(dirpath=tmpdir, every_n_batches=0)
523-
with pytest.raises(
524-
MisconfigurationException, match=r'Invalid value for every_n_batches=-2*'
525-
):
521+
with pytest.raises(MisconfigurationException, match=r'Invalid value for every_n_batches=-2*'):
526522
ModelCheckpoint(dirpath=tmpdir, every_n_batches=-2)
527523

528524
# These should not fail

0 commit comments

Comments
 (0)