Skip to content

Commit 4beda40

Browse files
miss-islingtonserhiy-storchakaclaude
authored
[3.13] gh-154289: Fix test_socket.testGetServBy on DragonFly (GH-154290) (GH-154296)
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 fc49aec commit 4beda40

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
@@ -1294,7 +1294,8 @@ def testGetServBy(self):
12941294
# protocol, at least for modern Linuxes.
12951295
if (
12961296
sys.platform.startswith(
1297-
('linux', 'android', 'freebsd', 'netbsd', 'gnukfreebsd'))
1297+
('linux', 'android', 'freebsd', 'dragonfly', 'netbsd',
1298+
'gnukfreebsd'))
12981299
or is_apple
12991300
):
13001301
# avoid the 'echo' service on this platform, as there is an

0 commit comments

Comments
 (0)