diff options
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r-- | Lib/test/test_socket.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 8649a6b..39d3130 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -323,6 +323,8 @@ 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) |