diff --git a/tests/test_models.py b/tests/test_models.py index 552739eb52..fcbcbce635 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -163,7 +163,7 @@ def test_cpu_model_with_amp(): model, hparams = get_model() - with pytest.raises(MisconfigurationException): + with pytest.raises(ModuleNotFoundError): run_gpu_model_test(trainer_options, model, hparams, on_gpu=False)