]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-90548: Skip NODEV portion of test_makedev when linked to musl (GH-138593...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 7 Sep 2025 07:46:11 +0000 (09:46 +0200)
committerGitHub <noreply@github.com>
Sun, 7 Sep 2025 07:46:11 +0000 (10:46 +0300)
Co-authored-by: Zachary Ware <zach@python.org>
Lib/test/test_posix.py

index 628920e34b586f428dd3d38e66df6a4fd00f6734..2af11888b17c1d5911b19ede0d29f90265cb8c45 100644 (file)
@@ -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)