]> granicus.if.org Git - python/commitdiff
testGetServBy(): Use services that should be available both on *nix and
authorBarry Warsaw <barry@python.org>
Tue, 6 Jul 2004 16:48:25 +0000 (16:48 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 6 Jul 2004 16:48:25 +0000 (16:48 +0000)
Windows (XP at least ;).  Test in this order: echo, daytime, domain.

Lib/test/test_socket.py

index 283145489514264a1d0d9b415e28708a3ffb8b31..180d965b09ddf69d52fc3d90d055b2d98555d9e8 100644 (file)
@@ -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