From: Barry Warsaw Date: Tue, 6 Jul 2004 16:48:25 +0000 (+0000) Subject: testGetServBy(): Use services that should be available both on *nix and X-Git-Tag: v2.4a1~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ff7d2cb0bacc96b606830c9cb5fc18f74824c64;p=thirdparty%2FPython%2Fcpython.git testGetServBy(): Use services that should be available both on *nix and Windows (XP at least ;). Test in this order: echo, daytime, domain. --- diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 283145489514..180d965b09dd 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