aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2019-01-20 17:24:41 -0600
committerAlex Gaynor <alex.gaynor@gmail.com>2019-01-20 17:24:41 -0600
commit2de450a2166e6a390f2d9e121b3d660b049b1807 (patch)
treeeae6eb157b62d6181364bbdeaf490aa48d9648d9 /tests/hazmat
parenta07b1f5463361570c3248c1096ffd8b3bff0bfa5 (diff)
downloadcryptography-2de450a2166e6a390f2d9e121b3d660b049b1807.tar.gz
cryptography-2de450a2166e6a390f2d9e121b3d660b049b1807.tar.bz2
cryptography-2de450a2166e6a390f2d9e121b3d660b049b1807.zip
deprecate encode_point and migrate all internal callers (#4720)
Diffstat (limited to 'tests/hazmat')
-rw-r--r--tests/hazmat/primitives/test_ec.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/hazmat/primitives/test_ec.py b/tests/hazmat/primitives/test_ec.py
index 471ef267..7a6d6aff 100644
--- a/tests/hazmat/primitives/test_ec.py
+++ b/tests/hazmat/primitives/test_ec.py
@@ -175,7 +175,8 @@ def test_encode_point():
16
)
pn = ec.EllipticCurvePublicNumbers(x, y, ec.SECP256R1())
- data = pn.encode_point()
+ with pytest.warns(utils.DeprecatedIn25):
+ data = pn.encode_point()
assert data == binascii.unhexlify(
"04233ea3b0027127084cd2cd336a13aeef69c598d8af61369a36454a17c6c22ae"
"c3ea2c10a84153862be4ec82940f0543f9ba866af9751a6ee79d38460b35f442e"