]> granicus.if.org Git - python/commitdiff
fromfd exists on Windows now
authorDaniel Stutzbach <daniel@stutzbachenterprises.com>
Fri, 3 Sep 2010 11:11:43 +0000 (11:11 +0000)
committerDaniel Stutzbach <daniel@stutzbachenterprises.com>
Fri, 3 Sep 2010 11:11:43 +0000 (11:11 +0000)
Lib/test/test_socket.py

index 5a8aa5a905998c39468f522b2c3d4b48d47791d9..60a44dcc9fd01ef1fd4170a80bf0340896ca8500 100644 (file)
@@ -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)