Commit 7ff7d2cb authored by Barry Warsaw's avatar Barry Warsaw

testGetServBy(): Use services that should be available both on *nix and

Windows (XP at least ;).  Test in this order: echo, daytime, domain.
parent 513ffe81
...@@ -289,7 +289,7 @@ class GeneralModuleTests(unittest.TestCase): ...@@ -289,7 +289,7 @@ class GeneralModuleTests(unittest.TestCase):
# Find one service that exists, then check all the related interfaces. # Find one service that exists, then check all the related interfaces.
# I've ordered this by protocols that have both a tcp and udp # I've ordered this by protocols that have both a tcp and udp
# protocol, at least for modern Linuxes. # protocol, at least for modern Linuxes.
for service in ('ssh', 'www', 'echo', 'imap2'): for service in ('echo', 'daytime', 'domain'):
try: try:
port = socket.getservbyname(service, 'tcp') port = socket.getservbyname(service, 'tcp')
break break
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment