aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utils.py
diff options
context:
space:
mode:
authorAlex Stapleton <alexs@prol.etari.at>2014-03-26 17:39:29 +0000
committerAlex Stapleton <alexs@prol.etari.at>2014-03-27 07:31:12 +0000
commit112963e296aadfdeaa4e2624c3b81b6b8c726a06 (patch)
treecd3c462d09860a8c01ad756acf60acb89b23fd1b /tests/utils.py
parent7a489dbd116edd4ca5a6104b74748f3a4f712d15 (diff)
downloadcryptography-112963e296aadfdeaa4e2624c3b81b6b8c726a06.tar.gz
cryptography-112963e296aadfdeaa4e2624c3b81b6b8c726a06.tar.bz2
cryptography-112963e296aadfdeaa4e2624c3b81b6b8c726a06.zip
Address most of my own comments
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py6
1 files changed, 3 insertions, 3 deletions
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):