summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2004-07-06 16:48:25 (GMT)
committerBarry Warsaw <barry@python.org>2004-07-06 16:48:25 (GMT)
commit7ff7d2cb0bacc96b606830c9cb5fc18f74824c64 (patch)
treec5b7945e2423f671e0b7a04380e08ac78317025c
parent513ffe81122274973d2adeff13345589d4313d47 (diff)
downloadcpython-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.py2
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