File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -516,13 +516,9 @@ def test_invalid_every_n_epoch(tmpdir):
516516
517517def 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
You can’t perform that action at this time.
0 commit comments