diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-07-03 03:52:39 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-07-03 03:52:39 -0400 |
commit | 53a36a1f8cd7c6bf243d5a5ad5522b0a592bba3d (patch) | |
tree | 6e8ec078cf59bd7d7ea2f94747aba82175298688 /tests/conftest.py | |
parent | f5a4519f7ead73cbca826f3d7c815dd8963efb0a (diff) | |
parent | 23cafe861f4da2d7261a41bc57801b226e6b8c1b (diff) | |
download | cryptography-53a36a1f8cd7c6bf243d5a5ad5522b0a592bba3d.tar.gz cryptography-53a36a1f8cd7c6bf243d5a5ad5522b0a592bba3d.tar.bz2 cryptography-53a36a1f8cd7c6bf243d5a5ad5522b0a592bba3d.zip |
Merge branch 'master' into encode-san
Diffstat (limited to 'tests/conftest.py')
-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 |