From 2cf8e59a38251ff6dfbcd326104068be01c95385 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 22 Jul 2026 11:36:49 +0300 Subject: [PATCH] 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 --- Lib/test/test_os/test_posix.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/test/test_os/test_posix.py b/Lib/test/test_os/test_posix.py index 299ab9774fc8..41a730708974 100644 --- a/Lib/test/test_os/test_posix.py +++ b/Lib/test/test_os/test_posix.py @@ -824,8 +824,7 @@ class PosixTester(unittest.TestCase): # a special case for NODEV, on others this is just an implementation # artifact. if (hasattr(posix, 'NODEV') and - sys.platform.startswith(('linux', 'macos', 'freebsd', 'dragonfly', - 'sunos'))): + sys.platform.startswith(('linux', 'macos', 'freebsd', 'sunos'))): NODEV = posix.NODEV self.assertEqual(posix.major(NODEV), NODEV) self.assertEqual(posix.minor(NODEV), NODEV) -- 2.47.3