Skip to content

Commit d8a97cb

Browse files
authored
gh-139310: Revert test skip for test_aead_aes_gcm (GH-139552) (GH-149687)
This reverts commit 41712c4. Anyone running tests on a kernel with the bug will now see a failure.
1 parent 629da5c commit d8a97cb

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

Lib/test/support/__init__.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -324,16 +324,6 @@ def requires(resource, msg=None):
324324
if resource == 'gui' and not _is_gui_available():
325325
raise ResourceDenied(_is_gui_available.reason)
326326

327-
def _get_kernel_version(sysname="Linux"):
328-
import platform
329-
if platform.system() != sysname:
330-
return None
331-
version_txt = platform.release().split('-', 1)[0]
332-
try:
333-
return tuple(map(int, version_txt.split('.')))
334-
except ValueError:
335-
return None
336-
337327
def _requires_unix_version(sysname, min_version):
338328
"""Decorator raising SkipTest if the OS is `sysname` and the version is less
339329
than `min_version`.

Lib/test/test_socket.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7191,12 +7191,6 @@ def test_aes_cbc(self):
71917191

71927192
@support.requires_linux_version(4, 9) # see gh-73510
71937193
def test_aead_aes_gcm(self):
7194-
kernel_version = support._get_kernel_version("Linux")
7195-
if kernel_version is not None:
7196-
if kernel_version >= (6, 16) and kernel_version < (6, 18):
7197-
# See https://github.com/python/cpython/issues/139310.
7198-
self.skipTest("upstream Linux kernel issue")
7199-
72007194
key = bytes.fromhex('c939cc13397c1d37de6ae0e1cb7c423c')
72017195
iv = bytes.fromhex('b3d8cc017cbb89b39e0f67e2')
72027196
plain = bytes.fromhex('c3b3c41f113a31b73d9a5cd432103069')

0 commit comments

Comments
 (0)