Skip to content

Commit 194fe15

Browse files
[3.14] pythongh-90548: Skip NODEV portion of test_makedev when linked to musl (pythonGH-138593) (python#138602)
Co-authored-by: Zachary Ware <[email protected]>
1 parent 9cc2b25 commit 194fe15

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)