Add skip-test_thread_time.patch

Skip test.test_time.TimeTestCase.test_thread_time on s390x
(gh#python/cpython#143528).
This commit is contained in:
2026-01-07 18:14:43 +01:00
parent 3a7c7aaaa8
commit 5b4527bbb7
3 changed files with 26 additions and 0 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jan 7 17:12:05 UTC 2026 - Matej Cepl <mcepl@cepl.eu>
- Add skip-test_thread_time.patch to skip
test.test_time.TimeTestCase.test_thread_time on s390x
(gh#python/cpython#143528).
-------------------------------------------------------------------
Mon Jan 5 17:23:03 UTC 2026 - Matej Cepl <mcepl@cepl.eu>

View File

@@ -224,6 +224,9 @@ Patch40: fix-test-recursion-limit-15.6.patch
Patch41: bsc1243155-sphinx-non-determinism.patch
# PATCH-FIX-OPENSUSE gh139257-Support-docutils-0.22.patch gh#python/cpython#139257 daniel.garcia@suse.com
Patch42: gh139257-Support-docutils-0.22.patch
# PATCH-FIX-UPSTREAM skip-test_thread_time.patch gh#python/cpython#143528 mcepl@suse.com
# skip test.test_time.TimeTestCase.test_thread_time on s390x
Patch43: skip-test_thread_time.patch
#### Python 3.15 DEVELOPMENT PATCHES
BuildRequires: autoconf-archive
BuildRequires: automake

View File

@@ -0,0 +1,16 @@
---
Lib/test/test_time.py | 1 +
1 file changed, 1 insertion(+)
Index: Python-3.15.0a3/Lib/test/test_time.py
===================================================================
--- Python-3.15.0a3.orig/Lib/test/test_time.py 2026-01-06 16:57:59.278632516 +0100
+++ Python-3.15.0a3/Lib/test/test_time.py 2026-01-07 18:10:25.621075073 +0100
@@ -570,6 +570,7 @@
self.assertTrue(info.monotonic)
self.assertFalse(info.adjustable)
+ @unittest.skipIf(platform.processor() == 's390x', "Fails on s390x, gh#python/cpython#143528")
def test_thread_time(self):
if not hasattr(time, 'thread_time'):
if sys.platform.startswith(('linux', 'android', 'win')):