diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-07-01 22:26:28 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-07-01 22:26:28 -0400 |
commit | 9bbd4900bc4db86b675aaf6c22c034a071150d5a (patch) | |
tree | b543f9eb76ae79ffb311ffe64600c33e375ca2ec | |
parent | ec3cc9bd730b6799424dc3f69b79d490eaa2f07d (diff) | |
download | cryptography-9bbd4900bc4db86b675aaf6c22c034a071150d5a.tar.gz cryptography-9bbd4900bc4db86b675aaf6c22c034a071150d5a.tar.bz2 cryptography-9bbd4900bc4db86b675aaf6c22c034a071150d5a.zip |
Fixed #1689 -- correctly handle code with multiple requires_backend_itnerface
-rw-r--r-- | tests/conftest.py | 8 |
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 |