aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utils.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-01-03 11:21:07 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-01-03 11:21:07 -0800
commitf96db83a64bb0ac40d04d27383d7c2defbcec491 (patch)
treea208e29ad945c061d41a71ce4d0f8a825d43739d /tests/utils.py
parent3dbc46a41e201df431cad02f8ed80565e7a9defb (diff)
parentf03334e25c3c31094015d1421feef7bcec9a9c1f (diff)
downloadcryptography-f96db83a64bb0ac40d04d27383d7c2defbcec491.tar.gz
cryptography-f96db83a64bb0ac40d04d27383d7c2defbcec491.tar.bz2
cryptography-f96db83a64bb0ac40d04d27383d7c2defbcec491.zip
Merge pull request #398 from reaperhulk/backend-skip-backend-name
Show which backend caused a skip
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py
index beb2ca5d..693a0c8f 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -28,7 +28,9 @@ def check_backend_support(item):
supported = item.keywords.get("supported")
if supported and "backend" in item.funcargs:
if not supported.kwargs["only_if"](item.funcargs["backend"]):
- pytest.skip(supported.kwargs["skip_message"])
+ pytest.skip("{0} ({1})".format(
+ supported.kwargs["skip_message"], item.funcargs["backend"]
+ ))
elif supported:
raise ValueError("This mark is only available on methods that take a "
"backend")