From: Zachary Ware Date: Sat, 6 Sep 2025 19:01:26 +0000 (-0500) Subject: gh-90548: Skip NODEV portion of test_makedev when linked to musl (GH-138593) X-Git-Tag: v3.15.0a1~465 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bbe00d53e9f598b012470cf077357cbbcbee737f;p=thirdparty%2FPython%2Fcpython.git gh-90548: Skip NODEV portion of test_makedev when linked to musl (GH-138593) --- diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 628920e34b58..2af11888b17c 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -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)