From 14768f59c5a6484a327257d08ec1026696c8c5b6ec3186475e4dd3b8ce76aa20 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 21 Feb 2023 04:24:03 +0000 Subject: [PATCH] - Stop test_ece.py using removed cryptography methods. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-http-ece?expand=0&rev=6 --- python-http-ece.changes | 5 +++++ python-http-ece.spec | 2 +- test_ece.py | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python-http-ece.changes b/python-http-ece.changes index 8eb50f0..cb0b71b 100644 --- a/python-http-ece.changes +++ b/python-http-ece.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 21 04:21:52 UTC 2023 - Steve Kowalik + +- Stop test_ece.py using removed cryptography methods. + ------------------------------------------------------------------- Wed Mar 23 10:13:27 UTC 2022 - pgajdos@suse.com diff --git a/python-http-ece.spec b/python-http-ece.spec index c071161..6c7b7de 100644 --- a/python-http-ece.spec +++ b/python-http-ece.spec @@ -1,7 +1,7 @@ # # spec file for package python-http-ece # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed diff --git a/test_ece.py b/test_ece.py index dfce4ae..dfe2fa7 100644 --- a/test_ece.py +++ b/test_ece.py @@ -53,7 +53,10 @@ class TestEce(unittest.TestCase): def setUp(self): self.private_key = make_key() - self.dh = self.private_key.public_key().public_numbers().encode_point() + self.dh = self.private_key.public_key().public_bytes( + Encoding.X962, + PublicFormat.UncompressedPoint + ) self.m_key = os.urandom(16) self.m_salt = os.urandom(16)