Skip to content

Commit bbe00d5

Browse files
authored
gh-90548: Skip NODEV portion of test_makedev when linked to musl (GH-138593)
1 parent 7d58461 commit bbe00d5

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)