aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):