summaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorHynek Schlawack <hs@ox.cx>2016-03-14 14:37:52 +0100
committerHynek Schlawack <hs@ox.cx>2016-03-14 14:37:52 +0100
commit8906bdd9325c4b477fe3208b2c64d00c429c4b6f (patch)
tree029d90aea1f27adf1f1c0d93de61c0948cff264c /tests/conftest.py
parentf9182e2c2e37cce45604cf8a30c1678b9397b746 (diff)
downloadpyopenssl-git-8906bdd9325c4b477fe3208b2c64d00c429c4b6f.tar.gz
Move conftest.py into tests
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
new file mode 100644
index 0000000..5a9954f
--- /dev/null
+++ b/tests/conftest.py
@@ -0,0 +1,12 @@
+# Copyright (c) The pyOpenSSL developers
+# See LICENSE for details.
+
+
+def pytest_report_header(config):
+ import OpenSSL.SSL
+ import cryptography
+
+ return "OpenSSL: {openssl}\ncryptography: {cryptography}".format(
+ openssl=OpenSSL.SSL.SSLeay_version(OpenSSL.SSL.SSLEAY_VERSION),
+ cryptography=cryptography.__version__
+ )