commit | 6fb3d5ee926fc11a2b0f686468a012b0b7b256a4 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Jun 12 20:48:59 2002 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Jun 12 20:48:59 2002 +0000 |
tree | 5052acd06378f8df739e6f18bf486236987364a8 | |
parent | 733632ac1f61acc9b96ad316972a71b290e30db0 [diff] |
Allow absent fromfd(), for Windows.
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 @@ 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)