aboutsummaryrefslogtreecommitdiffstats
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-07-01 22:26:28 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2015-07-01 22:26:28 -0400
commit9bbd4900bc4db86b675aaf6c22c034a071150d5a (patch)
treeb543f9eb76ae79ffb311ffe64600c33e375ca2ec /tests/conftest.py
parentec3cc9bd730b6799424dc3f69b79d490eaa2f07d (diff)
downloadcryptography-9bbd4900bc4db86b675aaf6c22c034a071150d5a.tar.gz
cryptography-9bbd4900bc4db86b675aaf6c22c034a071150d5a.tar.bz2
cryptography-9bbd4900bc4db86b675aaf6c22c034a071150d5a.zip
Fixed #1689 -- correctly handle code with multiple requires_backend_itnerface
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index c4d6b9c1..6599a643 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -18,11 +18,13 @@ def pytest_generate_tests(metafunc):
if "backend" in metafunc.fixturenames:
filtered_backends = []
required = metafunc.function.requires_backend_interface
- required_interfaces = tuple(
+ required_interfaces = [
mark.kwargs["interface"] for mark in required
- )
+ ]
for backend in selected_backends:
- if isinstance(backend, required_interfaces):
+ if all(
+ isinstance(backend, iface) for iface in required_interfaces
+ ):
filtered_backends.append(backend)
# If you pass an empty list to parametrize Bad Things(tm) happen