]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-90548: Skip NODEV portion of test_makedev when linked to musl (GH-138593)
authorZachary Ware <zach@python.org>
Sat, 6 Sep 2025 19:01:26 +0000 (14:01 -0500)
committerGitHub <noreply@github.com>
Sat, 6 Sep 2025 19:01:26 +0000 (14:01 -0500)
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)