summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-06-12 20:48:59 (GMT)
committerGuido van Rossum <guido@python.org>2002-06-12 20:48:59 (GMT)
commit6fb3d5ee926fc11a2b0f686468a012b0b7b256a4 (patch)
tree5052acd06378f8df739e6f18bf486236987364a8 /Lib
parent733632ac1f61acc9b96ad316972a71b290e30db0 (diff)
downloadcpython-6fb3d5ee926fc11a2b0f686468a012b0b7b256a4.zip
cpython-6fb3d5ee926fc11a2b0f686468a012b0b7b256a4.tar.gz
cpython-6fb3d5ee926fc11a2b0f686468a012b0b7b256a4.tar.bz2
Allow absent fromfd(), for Windows.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_socket.py2
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)