summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3/test_posix_nodev_disable.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2025-09-09 12:49:52 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-09-11 11:31:55 +0100
commitb499241d85eddc4a0790e6ba7f273a264ac6aa52 (patch)
tree346ce28350045db529851264406c04dbfb417ce8 /meta/recipes-devtools/python/python3/test_posix_nodev_disable.patch
parent3e07b2e32352cf3eb036365b30a5e45f8cd1a1ad (diff)
downloadpoky-b499241d85eddc4a0790e6ba7f273a264ac6aa52.tar.gz
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>
Diffstat (limited to 'meta/recipes-devtools/python/python3/test_posix_nodev_disable.patch')
-rw-r--r--meta/recipes-devtools/python/python3/test_posix_nodev_disable.patch16
1 files changed, 0 insertions, 16 deletions
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 @@
1Disable part of test_posix.test_makedev that depends on the NODEV
2macro being defined (missing on musl).
3
4Upstream-Status: Submitted [https://github.com/python/cpython/pull/31794]
5Signed-off-by: Khem Raj <raj.khem@gmail.com>
6--- a/Lib/test/test_posix.py
7+++ b/Lib/test/test_posix.py
8@@ -757,7 +757,7 @@ class PosixTester(unittest.TestCase):
9 self.assertRaises((ValueError, OverflowError), posix.makedev, x, minor)
10 self.assertRaises((ValueError, OverflowError), posix.makedev, major, x)
11
12- if sys.platform == 'linux':
13+ if False:
14 NODEV = -1
15 self.assertEqual(posix.major(NODEV), NODEV)
16 self.assertEqual(posix.minor(NODEV), NODEV)