Possible fix for test_random_keys() failure on short keys #2173

Merged
PeterSurda merged 4 commits from gitea-68 into v0.6 2024-02-20 02:23:12 +01:00
Showing only changes of commit b3c5900eb3 - Show all commits

View File

@ -33,7 +33,9 @@ class TestECC(unittest.TestCase):
def test_short_keys(self):
"""Check formatting of the keys with leading zeroes"""
# pylint: disable=protected-access
def sample_key(_):
"""Fake ECC keypair"""
return os.urandom(32), os.urandom(31), os.urandom(30)
try: