[Patches] [ python-Patches-1755214 ] struni: correction for sockets on win32

SourceForge.net noreply at sourceforge.net
Tue Jul 17 03:14:51 CEST 2007


Patches item #1755214, was opened at 2007-07-17 03:14
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1755214&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Windows
Group: Python 3000
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Amaury Forgeot d'Arc (amauryf)
Assigned to: Nobody/Anonymous (nobody)
Summary: struni: correction for sockets on win32

Initial Comment:
On Windows, os.dup() works on files, but not on socket handles.
Thus I changed the condition from
_os_has_dup = hasattr(os, "dup")
to
_can_dup_socket = hasattr(_socket, "dup")

This corrects many tests involving a socket server (test_ftplib at least).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1755214&group_id=5470


More information about the Patches mailing list