From 112963e296aadfdeaa4e2624c3b81b6b8c726a06 Mon Sep 17 00:00:00 2001 From: Alex Stapleton Date: Wed, 26 Mar 2014 17:39:29 +0000 Subject: Address most of my own comments --- tests/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/utils.py') diff --git a/tests/utils.py b/tests/utils.py index fbe448fe..f948642e 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -70,10 +70,10 @@ def check_backend_support(item): @contextmanager -def raises_unsupported(cause): +def raises_unsupported_algorithm(cause): with pytest.raises(UnsupportedAlgorithm) as exc_info: - yield - assert exc_info.value._cause == cause + yield exc_info + assert exc_info.value._cause is cause def load_vectors_from_file(filename, loader): -- cgit v1.2.3