Argh. Typo. :-(

This commit is contained in:
Guido van Rossum 2002-06-12 20:55:17 +00:00
parent 6fb3d5ee92
commit 8e95ca85ae

View file

@ -323,7 +323,7 @@ class BasicTCPTest(SocketConnectedTest):
def testFromFd(self):
"""Testing fromfd()."""
if not hasattr(socket, fromfd):
if not hasattr(socket, "fromfd"):
return # On Windows, this doesn't exist
fd = self.cli_conn.fileno()
sock = socket.fromfd(fd, socket.AF_INET, socket.SOCK_STREAM)