diff options
author | Barry Warsaw <barry@python.org> | 2004-07-06 16:48:25 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2004-07-06 16:48:25 (GMT) |
commit | 7ff7d2cb0bacc96b606830c9cb5fc18f74824c64 (patch) | |
tree | c5b7945e2423f671e0b7a04380e08ac78317025c | |
parent | 513ffe81122274973d2adeff13345589d4313d47 (diff) | |
download | cpython-7ff7d2cb0bacc96b606830c9cb5fc18f74824c64.zip cpython-7ff7d2cb0bacc96b606830c9cb5fc18f74824c64.tar.gz cpython-7ff7d2cb0bacc96b606830c9cb5fc18f74824c64.tar.bz2 |
testGetServBy(): Use services that should be available both on *nix and
Windows (XP at least ;). Test in this order: echo, daytime, domain.
-rw-r--r-- | Lib/test/test_socket.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 2831454..180d965 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 |