aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-12-24 21:03:23 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2013-12-24 21:03:23 -0800
commit5a09c6e9545373cece95f87ed28579f05959fced (patch)
tree931154d32fd6d62da2c19434e7de91c34c2961b0
parentb7b7f65e42e9831c3f2f3ddd0b5f021d029b73cb (diff)
downloadcryptography-5a09c6e9545373cece95f87ed28579f05959fced.tar.gz
cryptography-5a09c6e9545373cece95f87ed28579f05959fced.tar.bz2
cryptography-5a09c6e9545373cece95f87ed28579f05959fced.zip
Include teh name of the backend in the error message
-rw-r--r--tests/skip_check.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/skip_check.py b/tests/skip_check.py
index 454a3c5f..42a152ea 100644
--- a/tests/skip_check.py
+++ b/tests/skip_check.py
@@ -17,6 +17,8 @@ import pytest
def skip_check(name, iface, item):
- if name in item.keywords and item.funcargs.get('backend') is not None:
- if not isinstance(item.funcargs['backend'], iface):
- pytest.skip("Backend does not support {0}".format(name))
+ if name in item.keywords and "backend" in item.funcargs:
+ if not isinstance(item.funcargs["backend"], iface):
+ pytest.skip("{0} backend does not support {1}".format(
+ item.funcargs["backend"], name
+ ))