aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat
diff options
context:
space:
mode:
authorMichael <mrh2@MRH2W7D.uk.cambridgeconsultants.com>2014-09-12 16:56:32 +0100
committerMichael <mrh2@MRH2W7D.uk.cambridgeconsultants.com>2014-09-12 16:56:32 +0100
commited2a510d39d87540fc9c3a2239a0cdd34c7bc7de (patch)
tree368df2caec616c69da83e6ea1deb70e50b3fcabe /tests/hazmat
parent909f8222a5ee23c558876a783741e38b3027f59d (diff)
downloadcryptography-ed2a510d39d87540fc9c3a2239a0cdd34c7bc7de.tar.gz
cryptography-ed2a510d39d87540fc9c3a2239a0cdd34c7bc7de.tar.bz2
cryptography-ed2a510d39d87540fc9c3a2239a0cdd34c7bc7de.zip
Reorganised imports
Swapped the order of the imports so that flake8 will see that they are correct, and changed the test import to be relative rather than absolute, as is the standard
Diffstat (limited to 'tests/hazmat')
-rw-r--r--tests/hazmat/primitives/test_serialization.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/hazmat/primitives/test_serialization.py b/tests/hazmat/primitives/test_serialization.py
index cbcc772d..8542408b 100644
--- a/tests/hazmat/primitives/test_serialization.py
+++ b/tests/hazmat/primitives/test_serialization.py
@@ -21,15 +21,14 @@ import pytest
from cryptography.exceptions import _Reasons
from cryptography.hazmat.primitives import interfaces
+from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives.serialization import (
load_pem_pkcs8_private_key, load_pem_private_key,
load_pem_traditional_openssl_private_key
)
-from tests.hazmat.primitives.test_ec import (
- _skip_curve_unsupported
-)
-from cryptography.hazmat.primitives.asymmetric import ec
+
+from .test_ec import _skip_curve_unsupported
from .utils import _check_rsa_private_numbers, load_vectors_from_file
from ...utils import raises_unsupported_algorithm