Pain the bikeshed a different colour
diff --git a/tests/test_utils.py b/tests/test_utils.py
index 939845f..d0b7066 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -1624,7 +1624,7 @@
 
 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)