]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-154443: Fix test_makedev on DragonFly BSD (GH-154444)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 22 Jul 2026 08:36:49 +0000 (11:36 +0300)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2026 08:36:49 +0000 (08:36 +0000)
major() and minor() do not preserve NODEV on DragonFly BSD.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Lib/test/test_os/test_posix.py

index 299ab9774fc812c732864840c28c7ff7e2a06909..41a730708974c25e5be3675f71708246a885ca62 100644 (file)
@@ -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)