aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/utils.py b/tests/utils.py
index 3e5ea5f3..bdbf996f 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -74,8 +74,7 @@ def raises_unsupported_algorithm(reason):
with pytest.raises(UnsupportedAlgorithm) as exc_info:
yield exc_info
- if exc_info.value._reason is not reason:
- pytest.fail("Did not get expected reason tag for UnsupportedAlgorithm")
+ assert exc_info.value._reason is reason
def load_vectors_from_file(filename, loader):