aboutsummaryrefslogtreecommitdiffstats
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-07-12 11:44:04 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2015-07-12 11:44:04 -0500
commit3adb839c9dcc7b363622d73ca727b09707f033fb (patch)
treeb050ab0ecbf7412f213419ff67ac463edea7368e /tests/conftest.py
parent548e85ed63964c38fd450a4ee8753a5be2c956d5 (diff)
downloadcryptography-3adb839c9dcc7b363622d73ca727b09707f033fb.tar.gz
cryptography-3adb839c9dcc7b363622d73ca727b09707f033fb.tar.bz2
cryptography-3adb839c9dcc7b363622d73ca727b09707f033fb.zip
Don't try to load backends if the test doesn't need it
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 6599a643..bdd17fb7 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -12,10 +12,10 @@ from .utils import check_backend_support, select_backends, skip_if_empty
def pytest_generate_tests(metafunc):
- names = metafunc.config.getoption("--backend")
- selected_backends = select_backends(names, _available_backends())
-
if "backend" in metafunc.fixturenames:
+ names = metafunc.config.getoption("--backend")
+ selected_backends = select_backends(names, _available_backends())
+
filtered_backends = []
required = metafunc.function.requires_backend_interface
required_interfaces = [