diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-08-22 11:33:52 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-08-25 17:47:21 +0100 |
| commit | 6471b9a898b3e648c8a9b80322d120ee46be0d9a (patch) | |
| tree | 9abda5b4dfdf7d76fa05a4e93024c8c94d081b15 /meta/recipes-devtools/python/python3 | |
| parent | d566c7bb8d27e073d7977d21e34b763c7af3fcb1 (diff) | |
| download | poky-6471b9a898b3e648c8a9b80322d120ee46be0d9a.tar.gz | |
python3: Address failing ptests on musl
Take a partial patch to disable portion of test_makedev, its also applied
in alpine. NODEV does not exist on musl
Add test_null_dlsym to ignore list on musl, it needs GNU ifunc support
and musl does not implement GNU ifuncs
fixes
Failed ptests:
{'python3': ['test_null_dlsym', 'test_makedev', 'python3']}
(From OE-Core rev: c197de49d6b406be5fc79b6e17c397c834efc1b0)
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')
| -rw-r--r-- | meta/recipes-devtools/python/python3/test_posix_nodev_disable.patch | 16 |
1 files changed, 16 insertions, 0 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 new file mode 100644 index 0000000000..85767e1e89 --- /dev/null +++ b/meta/recipes-devtools/python/python3/test_posix_nodev_disable.patch | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | Disable part of test_posix.test_makedev that depends on the NODEV | ||
| 2 | macro being defined (missing on musl). | ||
| 3 | |||
| 4 | Upstream-Status: Submitted [https://github.com/python/cpython/pull/31794] | ||
| 5 | Signed-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) | ||
