Skip to content

Commit 1e90d97

Browse files
committed
Fix regex in test_create_supervised
1 parent 6423024 commit 1e90d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tests/ignite/engine/test_create_supervised.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def test_create_supervised_trainer_amp_error(mock_torch_cuda_amp_module):
457457
_test_create_supervised_trainer_wrong_accumulation(trainer_device="cpu", amp_mode="amp")
458458
with pytest.raises(ImportError, match="Please install torch>=1.12.0 to use amp_mode='amp'."):
459459
_test_create_supervised_trainer(amp_mode="amp")
460-
with pytest.raises(ImportError, match="Please install torch>=1.12.0 to use amp_mode='amp'."):
460+
with pytest.raises(ImportError, match="Please install torch>=1.6.0 to use scaler argument."):
461461
_test_create_supervised_trainer(amp_mode="amp", scaler=True)
462462

463463

0 commit comments

Comments
 (0)