Skip to content

Commit f0728d3

Browse files
miss-islingtonserhiy-storchakaclaude
authored
[3.15] gh-154443: Fix test_makedev on DragonFly BSD (GH-154444) (GH-154450)
major() and minor() do not preserve NODEV on DragonFly BSD. (cherry picked from commit 2cf8e59) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent df36cf1 commit f0728d3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/test/test_os/test_posix.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,8 +822,7 @@ def test_makedev(self):
822822
# a special case for NODEV, on others this is just an implementation
823823
# artifact.
824824
if (hasattr(posix, 'NODEV') and
825-
sys.platform.startswith(('linux', 'macos', 'freebsd', 'dragonfly',
826-
'sunos'))):
825+
sys.platform.startswith(('linux', 'macos', 'freebsd', 'sunos'))):
827826
NODEV = posix.NODEV
828827
self.assertEqual(posix.major(NODEV), NODEV)
829828
self.assertEqual(posix.minor(NODEV), NODEV)

0 commit comments

Comments
 (0)