diff options
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r-- | tests/test_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py index 939845fc..d0b70663 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1624,7 +1624,7 @@ def test_raises_unsupported_algorithm_wrong_type(): def test_raises_unsupported_algorithm_wrong_reason(): # Check that it fails if the wrong reason code is raised. - with pytest.raises(pytest.fail.Exception): + with pytest.raises(AssertionError): with raises_unsupported_algorithm(None): raise UnsupportedAlgorithm("An error.", _Reasons.BACKEND_MISSING_INTERFACE) |