gh-90548: Skip NODEV portion of test_makedev when linked to musl (GH-138593)

This commit is contained in:
Zachary Ware 2025-09-06 14:01:26 -05:00 committed by GitHub
parent 7d58461fdb
commit bbe00d53e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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)