From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 9 Sep 2025 20:01:53 +0000 (+0200) Subject: [3.13] gh-90548: Skip NODEV portion of test_makedev when linked to musl (GH-138713) X-Git-Tag: v3.13.8~89 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d724708bfb047706a33a94428e07a42199f95f4;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-90548: Skip NODEV portion of test_makedev when linked to musl (GH-138713) (cherry picked from commit bbe00d53e9f598b012470cf077357cbbcbee737f) --- diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index c9cbe1541e73..bfc1e2b251f6 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)