]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Skip test_socket.test_sha256() on linux < 4.5 (GH-4643) (#4645)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 30 Nov 2017 13:43:43 +0000 (05:43 -0800)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 30 Nov 2017 13:43:43 +0000 (14:43 +0100)
bpo-31705.
(cherry picked from commit 86afc1f2a7fb3afe00779c6426bc141bc795d9a3)

Lib/test/test_socket.py
Misc/NEWS.d/next/Tests/2017-11-30-12-27-10.bpo-31705.yULW7O.rst [new file with mode: 0644]

index 034a3da43f86fece8b6a2418727b920a77fbed22..a79ebfe9a349ad5c9b16425ceff59f605663b070 100644 (file)
@@ -5419,6 +5419,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")
diff --git a/Misc/NEWS.d/next/Tests/2017-11-30-12-27-10.bpo-31705.yULW7O.rst b/Misc/NEWS.d/next/Tests/2017-11-30-12-27-10.bpo-31705.yULW7O.rst
new file mode 100644 (file)
index 0000000..aa2d30c
--- /dev/null
@@ -0,0 +1,3 @@
+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.