Skip to content

Commit

Permalink
defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
ananthsub committed Feb 24, 2021
1 parent 9d0c9fe commit 14b4b7b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/checkpointing/test_model_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,13 +516,9 @@ def test_invalid_every_n_epoch(tmpdir):

def test_invalid_every_n_batches(tmpdir):
""" Test that an exception is raised for every_n_batches = 0 or < -1. """
with pytest.raises(
MisconfigurationException, match=r'Invalid value for every_n_batches=0*'
):
with pytest.raises(MisconfigurationException, match=r'Invalid value for every_n_batches=0*'):
ModelCheckpoint(dirpath=tmpdir, every_n_batches=0)
with pytest.raises(
MisconfigurationException, match=r'Invalid value for every_n_batches=-2*'
):
with pytest.raises(MisconfigurationException, match=r'Invalid value for every_n_batches=-2*'):
ModelCheckpoint(dirpath=tmpdir, every_n_batches=-2)

# These should not fail
Expand Down

0 comments on commit 14b4b7b

Please sign in to comment.