[Patches] [ python-Patches-711002 ] new test_urllib and patch for found urllib bug

SourceForge.net noreply@sourceforge.net
Thu, 27 Mar 2003 13:09:20 -0800


Patches item #711002, was opened at 2003-03-27 13:09
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=711002&group_id=5470

Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Brett Cannon (bcannon)
Assigned to: Nobody/Anonymous (nobody)
Summary: new test_urllib and patch for found urllib bug

Initial Comment:
Free time at PyCon led to me writing a new test_urllib (happy, Raymond?  =).  Since I have no guarantee that there would be a net connection (and didn't want to use it without user permission since I view using the 'network' resource as using sockets and not the Net) I wrote all tests using temporary files.

And do this found a bug, sort of.  The docs and doc string for urlretrieve() says  the  second value from the returned tuple should be None when a local file is passed as an argument.  Well, it wasn't; it was returning an rfc2822.Message object like it does for remote files.  So I patched it to match the docs.

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

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