This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: new test_urllib and patch for found urllib bug
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon
Priority: normal Keywords: patch

Created on 2003-03-27 21:09 by brett.cannon, last changed 2022-04-10 16:07 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_urllib.py brett.cannon, 2003-03-27 21:13 new test_urllib.py file (cvs diff was not working for it)
urllib_fix.diff brett.cannon, 2003-03-27 21:15 cvs diff -u for Lib/urllib.py
Messages (4)
msg43196 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2003-03-27 21:09
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.
msg43197 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2003-03-30 22:06
Logged In: YES 
user_id=357491

I just noticed that Skip uploaded test_urllibnet.py to test timeouts by connecting to python.org .  Is it okay to write tests that connect to the Net when the `network' resourse is enabled?  If so then I can add network tests to test_urllib.py .

Oh, and the beginning of the 2nd paragraph for my summary should have read "And I did find a bug, sort of" and not the mess of broken grammar rules as I initially typed it in.  =)
msg43198 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2003-04-11 07:17
Logged In: YES 
user_id=357491

This is bloody wonderful.  Not only is the uploaded test_urllib.py the tet_urllib currently in CVS (i.e., the old one), but I can't find my new version nor can I delete the bad version I have uploaded (why can't SF let the creator of a patch delete files?).  At least my patch for urllib.py is still okay.

Damn it, now I have to write test_urllib from scratch, *again*.  At least I am getting version 2.0 done before 1.0 is even out the door <0.1 wink>.
msg43199 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2003-04-20 02:53
Logged In: YES 
user_id=357491

I am going to delete this patch entirely since I can commit the new tests 
myself.  As for the bug I found, I will wait until I have finished my tests 
before I submit a final patch to make any and all fixes to urllib.
History
Date User Action Args
2022-04-10 16:07:55adminsetgithub: 38225
2003-03-27 21:09:20brett.cannoncreate