mirror of https://github.com/python/cpython
testGetServBy(): Use services that should be available both on *nix and
Windows (XP at least ;). Test in this order: echo, daytime, domain.
This commit is contained in:
parent
513ffe8112
commit
7ff7d2cb0b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue