Skip to content
This repository was archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Skip test_aead_aes_gcm during rpmbuild (Fedora)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlwgeorge committed Mar 22, 2017
1 parent 0af1240 commit 20f5e82
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions SOURCES/00258-fix-test_aead_aes_gcm.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 8992a01..74170f4 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -5458,6 +5458,7 @@ class LinuxKernelCryptoAPI(unittest.TestCase):
self.assertEqual(dec, msg * multiplier)

@support.requires_linux_version(4, 3) # see test_aes_cbc
+ @unittest.skip('Failure on Kernel 4.9+')
def test_aead_aes_gcm(self):
key = bytes.fromhex('c939cc13397c1d37de6ae0e1cb7c423c')
iv = bytes.fromhex('b3d8cc017cbb89b39e0f67e2')
8 changes: 8 additions & 0 deletions SPECS/python36u.spec
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,12 @@ Patch249: 00249-fix-out-of-tree-dtrace-builds.patch
# scripts specified as an entry_points
Patch252: 00252-add-executable-option.patch

# 00258 #
# Kernel 4.9 introduced some changes to its crypto API
# making test_aead_aes_gcm fail, so skipping the test for now
# Reported upstream: http://bugs.python.org/issue29324
Patch258: 00258-fix-test_aead_aes_gcm.patch

# (New patches go here ^^^)
#
# When adding new patches to "python" and "python3" in Fedora, EL, etc.,
Expand Down Expand Up @@ -568,6 +574,7 @@ cp -a %{SOURCE21} Lib/ensurepip/_bundled/
%patch243 -p1
%patch249 -p1
%patch252 -p1
%patch258 -p1

# Currently (2010-01-15), http://docs.python.org/library is for 2.6, and there
# are many differences between 2.6 and the Python 3 library.
Expand Down Expand Up @@ -1460,6 +1467,7 @@ CheckPython optimized
- Latest upstream
- Add --executable option to install.py command (Fedora)
- Fix syntax error in %%py_byte_compile macro (rhbz#1433569) (Fedora)
- Skip test_aead_aes_gcm during rpmbuild (Fedora)

* Thu Jan 19 2017 Carl George <carl.george@rackspace.com> - 3.6.0-2.ius
- Don't blow up on EL7 kernel (random generator) (rhbz#1410175) (Fedora)
Expand Down

0 comments on commit 20f5e82

Please sign in to comment.