Kaydet (Commit) 92a2c07b authored tarafından Miss Islington (bot)'s avatar Miss Islington (bot) Kaydeden (comit) Victor Stinner

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

bpo-31705.
(cherry picked from commit 86afc1f2)
üst dedcbee0
...@@ -5419,6 +5419,9 @@ class LinuxKernelCryptoAPI(unittest.TestCase): ...@@ -5419,6 +5419,9 @@ class LinuxKernelCryptoAPI(unittest.TestCase):
else: else:
return sock 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): def test_sha256(self):
expected = bytes.fromhex("ba7816bf8f01cfea414140de5dae2223b00361a396" expected = bytes.fromhex("ba7816bf8f01cfea414140de5dae2223b00361a396"
"177a9cb410ff61f20015ad") "177a9cb410ff61f20015ad")
......
Skip test_socket.test_sha256() on Linux kernel older than 4.5. The test
fails with ENOKEY on kernel 3.10 (on ppc64le). A fix was merged into the
kernel 4.5.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment