Skip to content

Commit 6d6d9e1

Browse files
committed
Fix regex
1 parent eefaa14 commit 6d6d9e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ignite/engine/test_create_supervised.py

Lines changed: 1 addition & 1 deletion
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 scaler argument."):
460+
with pytest.raises(ImportError, match="Please install torch>=1.12.0 to use amp_mode='amp'."):
461461
_test_create_supervised_trainer(amp_mode="amp", scaler=True)
462462

463463

0 commit comments

Comments
 (0)