aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cryptography/utils.py1
-rw-r--r--pytest.ini1
-rw-r--r--tests/conftest.py4
-rw-r--r--tests/hazmat/primitives/test_serialization.py2
4 files changed, 6 insertions, 2 deletions
diff --git a/cryptography/utils.py b/cryptography/utils.py
index 9c574085..f4c2e3cb 100644
--- a/cryptography/utils.py
+++ b/cryptography/utils.py
@@ -17,6 +17,7 @@ import sys
DeprecatedIn05 = DeprecationWarning
+DeprecatedIn06 = PendingDeprecationWarning
def register_interface(iface):
diff --git a/pytest.ini b/pytest.ini
index 00a2c7fb..77e73966 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -12,3 +12,4 @@ markers =
pkcs8_serialization: this test requires a backend providing PKCS8SerializationBackend
supported: parametrized test requiring only_if and skip_message
elliptic: this test requires a backend providing EllipticCurveBackend
+ pem_serialization: this test requires a backend providing PEMSerializationBackend
diff --git a/tests/conftest.py b/tests/conftest.py
index af146386..b7981c9d 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -18,7 +18,8 @@ import pytest
from cryptography.hazmat.backends import _available_backends
from cryptography.hazmat.backends.interfaces import (
CMACBackend, CipherBackend, DSABackend, EllipticCurveBackend, HMACBackend,
- HashBackend, PBKDF2HMACBackend, PKCS8SerializationBackend, RSABackend,
+ HashBackend, PBKDF2HMACBackend, PEMSerializationBackend,
+ PKCS8SerializationBackend, RSABackend,
TraditionalOpenSSLSerializationBackend
)
from .utils import check_backend_support, check_for_iface, select_backends
@@ -48,6 +49,7 @@ def pytest_runtest_setup(item):
)
check_for_iface("pkcs8_serialization", PKCS8SerializationBackend, item)
check_for_iface("elliptic", EllipticCurveBackend, item)
+ check_for_iface("pem_serialization", PEMSerializationBackend, item)
check_backend_support(item)
diff --git a/tests/hazmat/primitives/test_serialization.py b/tests/hazmat/primitives/test_serialization.py
index e960878b..9333a6bd 100644
--- a/tests/hazmat/primitives/test_serialization.py
+++ b/tests/hazmat/primitives/test_serialization.py
@@ -22,7 +22,7 @@ import pytest
from cryptography.exceptions import _Reasons
from cryptography.hazmat.primitives import interfaces
from cryptography.hazmat.primitives.serialization import (
- load_pem_private_key, load_pem_pkcs8_private_key,
+ load_pem_pkcs8_private_key, load_pem_private_key,
load_pem_traditional_openssl_private_key
)