Skip to content

Commit 39da91a

Browse files
committed
Fix match
1 parent 29d4773 commit 39da91a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/trainer/test_trainer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,7 @@ def on_fit_start(self, trainer, pl_module: LightningModule) -> None:
17821782
def test_exception_when_testing_or_validating_with_fast_dev_run(tmpdir):
17831783
trainer = Trainer(default_root_dir=tmpdir, fast_dev_run=True)
17841784

1785-
with pytest.raises(MisconfigurationException, match=".*with `fast_dev_run=True`*"):
1785+
with pytest.raises(MisconfigurationException, match="with `fast_dev_run=True`"):
17861786
trainer.validate()
1787-
with pytest.raises(MisconfigurationException, match=".*with `fast_dev_run=True`*"):
1787+
with pytest.raises(MisconfigurationException, match="with `fast_dev_run=True`"):
17881788
trainer.test()

0 commit comments

Comments
 (0)