From b499241d85eddc4a0790e6ba7f273a264ac6aa52 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 9 Sep 2025 12:49:52 -0700 Subject: 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 Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- .../python/python3/test_posix_nodev_disable.patch | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 meta/recipes-devtools/python/python3/test_posix_nodev_disable.patch (limited to 'meta/recipes-devtools/python/python3/test_posix_nodev_disable.patch') diff --git a/meta/recipes-devtools/python/python3/test_posix_nodev_disable.patch b/meta/recipes-devtools/python/python3/test_posix_nodev_disable.patch deleted file mode 100644 index 85767e1e89..0000000000 --- a/meta/recipes-devtools/python/python3/test_posix_nodev_disable.patch +++ /dev/null @@ -1,16 +0,0 @@ -Disable part of test_posix.test_makedev that depends on the NODEV -macro being defined (missing on musl). - -Upstream-Status: Submitted [https://github.com/python/cpython/pull/31794] -Signed-off-by: Khem Raj ---- 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 False: - NODEV = -1 - self.assertEqual(posix.major(NODEV), NODEV) - self.assertEqual(posix.minor(NODEV), NODEV) -- cgit v1.2.3-54-g00ecf