From 7ff7d2cb0bacc96b606830c9cb5fc18f74824c64 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 6 Jul 2004 16:48:25 +0000 Subject: [PATCH] testGetServBy(): Use services that should be available both on *nix and Windows (XP at least ;). Test in this order: echo, daytime, domain. --- Lib/test/test_socket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 2831454895..180d965b09 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -289,7 +289,7 @@ class GeneralModuleTests(unittest.TestCase): # Find one service that exists, then check all the related interfaces. # I've ordered this by protocols that have both a tcp and udp # protocol, at least for modern Linuxes. - for service in ('ssh', 'www', 'echo', 'imap2'): + for service in ('echo', 'daytime', 'domain'): try: port = socket.getservbyname(service, 'tcp') break -- 2.50.0