Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
carmocca committed Mar 29, 2021
1 parent 137dd04 commit b15434d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/trainer/test_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1782,7 +1782,7 @@ def on_fit_start(self, trainer, pl_module: LightningModule) -> None:
def test_exception_when_testing_or_validating_with_fast_dev_run(tmpdir):
trainer = Trainer(default_root_dir=tmpdir, fast_dev_run=True)

with pytest.raises(MisconfigurationException, match=r"trainer.validate\(\)` with `fast_dev_run=True"):
with pytest.raises(MisconfigurationException, match=r"\.validate\(\)` with `fast_dev_run=True"):
trainer.validate()
with pytest.raises(MisconfigurationException, match=r"trainer.test\(\)` with `fast_dev_run=True"):
with pytest.raises(MisconfigurationException, match=r"\.test\(\)` with `fast_dev_run=True"):
trainer.test()

0 comments on commit b15434d

Please sign in to comment.