14
0

- 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
This commit is contained in:
2023-02-21 04:24:03 +00:00
committed by Git OBS Bridge
parent 4031cb75b0
commit 14768f59c5
3 changed files with 10 additions and 2 deletions

View File

@@ -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)