Skip to content

Commit 2ae635a

Browse files
miss-islingtonserhiy-storchakaclaude
authored
[3.14] gh-154289: Fix test_socket.testGetServBy on DragonFly (GH-154290) (GH-154295)
DragonFly lists "echo 4/ddp" before "echo 7/tcp" in /etc/services, like FreeBSD, so avoid the "echo" service there too. (cherry picked from commit 96059f9) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 1ad0eef commit 2ae635a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_socket.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,8 @@ def testGetServBy(self):
13001300
# protocol, at least for modern Linuxes.
13011301
if (
13021302
sys.platform.startswith(
1303-
('linux', 'android', 'freebsd', 'netbsd', 'gnukfreebsd'))
1303+
('linux', 'android', 'freebsd', 'dragonfly', 'netbsd',
1304+
'gnukfreebsd'))
13041305
or is_apple
13051306
):
13061307
# avoid the 'echo' service on this platform, as there is an

0 commit comments

Comments
 (0)