Skip to content

Commit 96059f9

Browse files
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) <noreply@anthropic.com>
1 parent 53597df commit 96059f9

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
@@ -1302,7 +1302,8 @@ def testGetServBy(self):
13021302
# protocol, at least for modern Linuxes.
13031303
if (
13041304
sys.platform.startswith(
1305-
('linux', 'android', 'freebsd', 'netbsd', 'gnukfreebsd'))
1305+
('linux', 'android', 'freebsd', 'dragonfly', 'netbsd',
1306+
'gnukfreebsd'))
13061307
or is_apple
13071308
):
13081309
# avoid the 'echo' service on this platform, as there is an

0 commit comments

Comments
 (0)