Commit 38066f54 authored by Skip Montanaro's avatar Skip Montanaro

testGetServByName shouldn't check for getservbyname - the socket module

should always have it.
parent 8509fbe8
......@@ -259,7 +259,6 @@ class GeneralModuleTests(unittest.TestCase):
def testGetServByName(self):
"""Testing getservbyname()."""
if hasattr(socket, 'getservbyname'):
# try a few protocols - not everyone has telnet enabled
found = 0
for proto in ("telnet", "ssh", "www", "ftp"):
......
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