]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Try to get test_urllib to pass on Windows by closing the file.
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 20 Mar 2007 08:14:57 +0000 (08:14 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 20 Mar 2007 08:14:57 +0000 (08:14 +0000)
commitce55e21c70068315e128980848f86d1d471fc41c
tree7d1d1c3b4862d4ac48c515e2ebe8307a1e8c9968
parent6cbd8de64175327c9d7d088b92f74cbd1c32f3e6
Try to get test_urllib to pass on Windows by closing the file.
I'm guessing that's the problem.  h.getfile() must be called *after*
h.getreply() and the fp can be None.

I'm not entirely convinced this is the best fix (or even correct).
The buildbots will tell us if things improve or not.  I don't
know if this needs to be backported (assuming it actually works).
Lib/urllib.py