[Python-checkins] Skip test_socket.test_sha256() on linux < 4.5 (GH-4643) (#4645)

Victor Stinner webhook-mailer at python.org
Thu Nov 30 08:43:46 EST 2017


https://github.com/python/cpython/commit/92a2c07b71aefc01f84ba4b0eda8e2a45c1a6b65
commit: 92a2c07b71aefc01f84ba4b0eda8e2a45c1a6b65
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Victor Stinner <victor.stinner at gmail.com>
date: 2017-11-30T14:43:43+01:00
summary:

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

bpo-31705.
(cherry picked from commit 86afc1f2a7fb3afe00779c6426bc141bc795d9a3)

files:
A Misc/NEWS.d/next/Tests/2017-11-30-12-27-10.bpo-31705.yULW7O.rst
M Lib/test/test_socket.py

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")
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
index 00000000000..aa2d30c3d6b
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2017-11-30-12-27-10.bpo-31705.yULW7O.rst
@@ -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.



More information about the Python-checkins mailing list