https://github.com/python/cpython/commit/f0728d31cde7b6d7928865fd1780b83ce0634413 commit: f0728d31cde7b6d7928865fd1780b83ce0634413 branch: 3.15 author: Miss Islington (bot) <[email protected]> committer: serhiy-storchaka <[email protected]> date: 2026-07-22T17:28:59Z summary:
[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 2cf8e59a38251ff6dfbcd326104068be01c95385) Co-authored-by: Serhiy Storchaka <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]> files: M Lib/test/test_os/test_posix.py diff --git a/Lib/test/test_os/test_posix.py b/Lib/test/test_os/test_posix.py index 38066a5426090a..0371a35c13af48 100644 --- a/Lib/test/test_os/test_posix.py +++ b/Lib/test/test_os/test_posix.py @@ -822,8 +822,7 @@ def test_makedev(self): # 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) _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
