Files
poky/meta/recipes-devtools/python/python3/0001-gh-90548-Skip-NODEV-portion-of-test_makedev-when-lin.patch
Khem Raj b499241d85 python: Skip NODEV portion of test_makedev when linked to musl
backport the upstreamed patch which is available in 3.14+

(From OE-Core rev: 46e0b41cc78d77900286c198da81159e63c2cb63)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-09-11 11:31:55 +01:00

25 lines
1.0 KiB
Diff

From 2dc5e9f4c82888dbe21bd1eadb4b59b0efa9608c Mon Sep 17 00:00:00 2001
From: Zachary Ware <zach@python.org>
Date: Sat, 6 Sep 2025 13:20:12 -0500
Subject: [PATCH] gh-90548: Skip NODEV portion of test_makedev when linked to musl
Upstream-Status: Backport [https://github.com/python/cpython/pull/138593]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Lib/test/test_posix.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index c9cbe15..bfc1e2b 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -757,7 +757,7 @@ class PosixTester(unittest.TestCase):
self.assertRaises((ValueError, OverflowError), posix.makedev, x, minor)
self.assertRaises((ValueError, OverflowError), posix.makedev, major, x)
- if sys.platform == 'linux':
+ if sys.platform == 'linux' and not support.linked_to_musl():
NODEV = -1
self.assertEqual(posix.major(NODEV), NODEV)
self.assertEqual(posix.minor(NODEV), NODEV)