Skip test_socket.test_sha256() on linux < 4.5 (#4643)

bpo-31705.
This commit is contained in:
Victor Stinner 2017-11-30 13:58:43 +01:00 committed by GitHub
parent 5e3806f8cf
commit 86afc1f2a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -5573,6 +5573,9 @@ class LinuxKernelCryptoAPI(unittest.TestCase):
else:
return sock
# bpo-31705: On kernel older than 4.5, sendto() failed with ENOKEY,
# at least on ppc64le architecture
@support.requires_linux_version(4, 5)
def test_sha256(self):
expected = bytes.fromhex("ba7816bf8f01cfea414140de5dae2223b00361a396"
"177a9cb410ff61f20015ad")