From: Daniel Stutzbach Date: Fri, 3 Sep 2010 11:11:43 +0000 (+0000) Subject: fromfd exists on Windows now X-Git-Tag: v3.2a2~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06a3c8ae82c76bd0ea21d3860a65bd6ece6ab72e;p=python fromfd exists on Windows now --- diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 5a8aa5a905..60a44dcc9f 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -708,8 +708,6 @@ class BasicTCPTest(SocketConnectedTest): def testFromFd(self): # Testing 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) msg = sock.recv(1024)