Skip to content

Commit 2cf8e59

Browse files
gh-154443: Fix test_makedev on DragonFly BSD (GH-154444)
major() and minor() do not preserve NODEV on DragonFly BSD. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent cbd1539 commit 2cf8e59

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
@@ -824,8 +824,7 @@ def test_makedev(self):
824824
# a special case for NODEV, on others this is just an implementation
825825
# artifact.
826826
if (hasattr(posix, 'NODEV') and
827-
sys.platform.startswith(('linux', 'macos', 'freebsd', 'dragonfly',
828-
'sunos'))):
827+
sys.platform.startswith(('linux', 'macos', 'freebsd', 'sunos'))):
829828
NODEV = posix.NODEV
830829
self.assertEqual(posix.major(NODEV), NODEV)
831830
self.assertEqual(posix.minor(NODEV), NODEV)

0 commit comments

Comments
 (0)