From 42b6e700c80fe471d4b1f5d6b831abecb9b67a57 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Sat, 6 Sep 2025 14:01:26 -0500 Subject: [PATCH] gh-90548: Skip NODEV portion of test_makedev when linked to musl (GH-138593) (cherry picked from commit bbe00d53e9f598b012470cf077357cbbcbee737f) Co-authored-by: Zachary Ware --- Lib/test/test_posix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index c9cbe1541e733e..bfc1e2b251f6db 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -757,7 +757,7 @@ def test_makedev(self): 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)