testGetServByName shouldn't check for getservbyname - the socket module

should always have it.
This commit is contained in:
Skip Montanaro 2002-08-02 15:52:30 +00:00
parent 940e970f6e
commit f4433303a8

View file

@ -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"):