churchyard / rpms / python36

Forked from rpms/python36 5 years ago
Clone
Blob Blame History Raw
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 034a3da43f8..a79ebfe9a34 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -5419,6 +5419,9 @@ def create_alg(self, typ, name):
         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")