aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-12-27 15:51:40 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-12-27 15:51:40 -0600
commitec49550b1f29c52164a3f4bca7779e7dc23d397f (patch)
treec6ce0fa99a092e89bfb5f0ff7633a3dcb1f6f867
parent783479c6189d788ac2f721b5b017073736c578cb (diff)
downloadcryptography-ec49550b1f29c52164a3f4bca7779e7dc23d397f.tar.gz
cryptography-ec49550b1f29c52164a3f4bca7779e7dc23d397f.tar.bz2
cryptography-ec49550b1f29c52164a3f4bca7779e7dc23d397f.zip
change typeerror to valueerror
-rw-r--r--tests/test_utils.py2
-rw-r--r--tests/utils.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py
index 32daff70..c640367e 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -68,7 +68,7 @@ def test_check_backend_support_no_backend():
)
item = pretend.stub(keywords={"supported": supported},
funcargs={})
- with pytest.raises(TypeError):
+ with pytest.raises(ValueError):
check_backend_support(item)
diff --git a/tests/utils.py b/tests/utils.py
index 7ae2eb8b..beb2ca5d 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -30,8 +30,8 @@ def check_backend_support(item):
if not supported.kwargs["only_if"](item.funcargs["backend"]):
pytest.skip(supported.kwargs["skip_message"])
elif supported:
- raise TypeError("This mark is only available on methods that take a "
- "backend")
+ raise ValueError("This mark is only available on methods that take a "
+ "backend")
def load_vectors_from_file(filename, loader):