]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.15] gh-154443: Fix test_makedev on DragonFly BSD (GH-154444) (GH-154450)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 22 Jul 2026 17:28:59 +0000 (19:28 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Jul 2026 17:28:59 +0000 (17:28 +0000)
major() and minor() do not preserve NODEV on DragonFly BSD.
(cherry picked from commit 2cf8e59a38251ff6dfbcd326104068be01c95385)

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

index 38066a5426090a20bf9213ca45057eb007300665..0371a35c13af488255bec8122ce0e5843cacd907 100644 (file)
@@ -822,8 +822,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)