GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [3.11] gh-139310: skip `test_aead_aes_gcm` for Linux kernel between 6… · python/cpython@854c029

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Lib/test
    • support
      • __init__.py
    • test_socket.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Lib/test/support/__init__.py‎

Copy file name to clipboardExpand all lines: Lib/test/support/__init__.py
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,16 @@ def requires(resource, msg=None):
304304
if resource == 'gui' and not _is_gui_available():
305305
raise ResourceDenied(_is_gui_available.reason)
306306

307+
def _get_kernel_version(sysname="Linux"):
308+
import platform
309+
if platform.system() != sysname:
310+
return None
311+
version_txt = platform.release().split('-', 1)[0]
312+
try:
313+
return tuple(map(int, version_txt.split('.')))
314+
except ValueError:
315+
return None
316+
307317
def _requires_unix_version(sysname, min_version):
308318
"""Decorator raising SkipTest if the OS is `sysname` and the version is less
309319
than `min_version`.
Collapse file

‎Lib/test/test_socket.py‎

Copy file name to clipboardExpand all lines: Lib/test/test_socket.py
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6531,8 +6531,14 @@ def test_aes_cbc(self):
65316531
self.assertEqual(len(dec), msglen * multiplier)
65326532
self.assertEqual(dec, msg * multiplier)
65336533

6534-
@support.requires_linux_version(4, 9) # see issue29324
6534+
@support.requires_linux_version(4, 9) # see gh-73510
65356535
def test_aead_aes_gcm(self):
6536+
kernel_version = support._get_kernel_version("Linux")
6537+
if kernel_version is not None:
6538+
if kernel_version >= (6, 16) and kernel_version < (6, 18):
6539+
# See https://github.com/python/cpython/issues/139310.
6540+
self.skipTest("upstream Linux kernel issue")
6541+
65366542
key = bytes.fromhex('c939cc13397c1d37de6ae0e1cb7c423c')
65376543
iv = bytes.fromhex('b3d8cc017cbb89b39e0f67e2')
65386544
plain = bytes.fromhex('c3b3c41f113a31b73d9a5cd432103069')

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.