diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2016-03-19 16:47:30 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2016-03-19 16:47:30 -0400 |
commit | b8b1d7200504e39054222643a88b09761e66d4f8 (patch) | |
tree | ae57ea0727236179938ffa2fb084b0b400eb3926 /tests/conftest.py | |
parent | f3944404d9a73ad983b1fef05c4e2450e85bf544 (diff) | |
download | cryptography-b8b1d7200504e39054222643a88b09761e66d4f8.tar.gz cryptography-b8b1d7200504e39054222643a88b09761e66d4f8.tar.bz2 cryptography-b8b1d7200504e39054222643a88b09761e66d4f8.zip |
Instead of running a python -c, use pytest_report_header to indicate OpenSSL version
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index bdd17fb7..d872d7c1 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -7,10 +7,14 @@ from __future__ import absolute_import, division, print_function import pytest from cryptography.hazmat.backends import _available_backends +from cryptography.hazmat.backends.openssl import backend as openssl_backend from .utils import check_backend_support, select_backends, skip_if_empty +def pytest_report_header(config): + return "OpenSSL: {}".format(openssl_backend.openssl_version_text()) + def pytest_generate_tests(metafunc): if "backend" in metafunc.fixturenames: names = metafunc.config.getoption("--backend") |