https://github.com/python/cpython/commit/96059f9446510f594c4148d53bd1a4e3532af697 commit: 96059f9446510f594c4148d53bd1a4e3532af697 branch: main author: Serhiy Storchaka <[email protected]> committer: serhiy-storchaka <[email protected]> date: 2026-07-20T19:25:33Z summary:
gh-154289: Fix test_socket.testGetServBy on DragonFly (GH-154290) DragonFly lists "echo 4/ddp" before "echo 7/tcp" in /etc/services, like FreeBSD, so avoid the "echo" service there too. Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> files: M Lib/test/test_socket.py diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 99f9e746c854e3..a234d6b37ff379 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -1302,7 +1302,8 @@ def testGetServBy(self): # protocol, at least for modern Linuxes. if ( sys.platform.startswith( - ('linux', 'android', 'freebsd', 'netbsd', 'gnukfreebsd')) + ('linux', 'android', 'freebsd', 'dragonfly', 'netbsd', + 'gnukfreebsd')) or is_apple ): # avoid the 'echo' service on this platform, as there is an _______________________________________________ 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]
