From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 7 Sep 2025 07:46:11 +0000 (+0200) Subject: [3.14] gh-90548: Skip NODEV portion of test_makedev when linked to musl (GH-138593... X-Git-Tag: v3.14.0rc3~83 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=194fe15c5fa870dabdaadabdc7c24e3ee170c871;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-90548: Skip NODEV portion of test_makedev when linked to musl (GH-138593) (#138602) Co-authored-by: Zachary Ware --- 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)