Skip to content

Commit 7d72470

Browse files
[3.13] pythongh-90548: Skip NODEV portion of test_makedev when linked to musl (pythonGH-138713)
(cherry picked from commit bbe00d5)
1 parent 282bd0f commit 7d72470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_posix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ def test_makedev(self):
757757
self.assertRaises((ValueError, OverflowError), posix.makedev, x, minor)
758758
self.assertRaises((ValueError, OverflowError), posix.makedev, major, x)
759759

760-
if sys.platform == 'linux':
760+
if sys.platform == 'linux' and not support.linked_to_musl():
761761
NODEV = -1
762762
self.assertEqual(posix.major(NODEV), NODEV)
763763
self.assertEqual(posix.minor(NODEV), NODEV)

0 commit comments

Comments
 (0)