Facundo Batista
4f1b1ed975
Fixed the semantic of timeout for socket.create_connection and
...
all the upper level libraries that use it, including urllib2.
Added and fixed some tests, and changed docs correspondingly.
Thanks to John J Lee for the patch and the pusing, :)
2008-05-29 16:39:26 +00:00
Christian Heimes
c5f05e45cf
Patch #2167 from calvin: Remove unused imports
2008-02-23 17:40:11 +00:00
Georg Brandl
9b0d46db11
#1178141 : add addinfourl.code to get http status code from urllib.
2008-01-20 11:43:03 +00:00
Kurt B. Kaiser
0a11232978
Change docstrings to comments so test output will display normally.
2008-01-02 05:23:38 +00:00
Kurt B. Kaiser
0f7c25d20f
Issue1177
...
r58207 and r58247 patch logic is reversed. I noticed this when I
tried to use urllib to retrieve a file which required auth.
Fix that and add a test for 401 error to verify.
2008-01-02 04:11:28 +00:00
Neal Norwitz
38917f56fe
Get test passing again by commenting out the reference to the test class.
2007-05-25 05:13:40 +00:00
Facundo Batista
d9880d07fc
Commenting out the tests until find out who can test them in
...
one of the problematic enviroments.
2007-05-25 04:20:22 +00:00
Facundo Batista
e312416809
Fixing stupid error, and introducing a sleep, to see if the
...
other thread is awakened and finish sending data.
2007-05-25 03:47:19 +00:00
Facundo Batista
b4dfafaba6
Trying to make the tests work in Windows and Solaris, everywhere
...
else just works
2007-05-25 03:10:28 +00:00
Facundo Batista
62c744e7d1
Let's see if reading exactly what is written allow this live
...
test to pass (now I know why there were so few tests in ftp,
http, etc, :( ).
2007-05-24 20:51:19 +00:00
Facundo Batista
965fa24e8d
Removed the .recv() in the test, is not necessary, and was
...
causing problems that didn't have anything to do with was
actually being tested...
2007-05-24 20:01:59 +00:00
Facundo Batista
711a54ebde
Added an optional timeout parameter to urllib.ftpwrapper, with tests
...
(for this and a basic one, because there weren't any). Changed also
NEWS, but didn't find documentation for this function, assumed it
wasn't public...
2007-05-24 17:50:54 +00:00
Žiga Seilnacht
9aba6d6905
Patch #1695862 : remove the cleanup code, now that Windows buildbots are green
...
again.
2007-04-12 08:46:51 +00:00
Žiga Seilnacht
d5b3fed17d
Patch #1695862 : remove old test directory that causes test_urllib failures
...
on Windows buildbots. The change is a one time fix and will be removed
after a successful buildbot run.
2007-04-09 19:10:29 +00:00
Neal Norwitz
ce2ab351f0
Try to make this test more resistant to dropping from previous runs (ie, files that may exist but cause the test to fail). Should be backported (assuming it works :-)
2007-03-20 06:13:25 +00:00
Georg Brandl
f66b6039c1
Bug #767111 : fix long-standing bug in urllib which caused an
...
AttributeError instead of an IOError when the server's response didn't
contain a valid HTTP status line.
2007-03-14 08:27:52 +00:00
Raymond Hettinger
4b0f20def3
Teach unquote() to handle unicode inputs
2005-10-15 16:41:53 +00:00
Raymond Hettinger
2bdec7bfb0
Revert 1.170. Add tests.
2005-09-10 14:30:09 +00:00
Georg Brandl
5a650a253c
patch [ 810023 ] Fix for off-by-one bug in urllib.URLopener.retrieve
2005-08-26 08:51:34 +00:00
Andrew M. Kuchling
f1a2f9ec41
Docstring grammar fix
2004-06-29 13:07:53 +00:00
Hye-Shik Chang
39aef79821
Fix a bug that robotparser starves memory when the server responses
...
in HTTP/0.9 due to dissonance of httplib.LineAndFileWrapper and
urllib.addbase.
2004-06-05 13:30:56 +00:00
Tim Peters
c2659cff5d
Whitespace normalization.
2003-05-12 20:19:37 +00:00
Walter Dörwald
21d3a32b99
Combine the functionality of test_support.run_unittest()
...
and test_support.run_classtests() into run_unittest()
and use it wherever possible.
Also don't use "from test.test_support import ...", but
"from test import test_support" in a few spots.
From SF patch #662807 .
2003-05-01 17:45:56 +00:00
Brett Cannon
19691360c7
Added tests for urlretrieve. Also made sure urlopen tests cleaned up properly after themselves.
2003-04-29 05:08:06 +00:00
Guido van Rossum
51735b0569
Fix the tests on Windows, by writing the test data file in binary
...
mode.
XXX I'm not convinced that this is the right solution -- arguably,
on Windows, the _fileobject class should honor the mode argument
and do newline translation. But it's never done that so I think
there's no urgent need to fix this today.
2003-04-25 15:01:05 +00:00
Brett Cannon
74bfd70e92
Complete rewrite of module. Only has tests using temporary files; net tests
...
should go in test_urllibnet.py .
Still need to write tests for _urlopener usage and urlretrieve.
2003-04-25 09:39:47 +00:00
Barry Warsaw
04f357cffe
Get rid of relative imports in all unittests. Now anything that
...
imports e.g. test_support must do so using an absolute package name
such as "import test.test_support" or "from test import test_support".
This also updates the README in Lib/test, and gets rid of the
duplicate data dirctory in Lib/test/data (replaced by
Lib/email/test/data).
Now Tim and Jack can have at it. :)
2002-07-23 19:04:11 +00:00
Skip Montanaro
080c99745f
added several more urlencode test cases - part of patch 103391
2001-01-28 21:12:22 +00:00
Skip Montanaro
e78b92a062
added some tests for urlencode
2001-01-20 20:22:30 +00:00
Tim Peters
cc58363611
urllib.py very recently changed to produce uppercase escapes, but no
...
corresponding changes were made to its std test.
2001-01-19 07:00:08 +00:00
Tim Peters
1a8a53d16f
test_urllib is failing on Windows. I don't know why, but I can at least
...
change the test to give a clue about *where* it's failing.
2001-01-19 06:06:37 +00:00
Marc-André Lemburg
3661908a6a
This patch removes all uses of "assert" in the regression test suite
...
and replaces them with a new API verify(). As a result the regression
suite will also perform its tests in optimization mode.
Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
2001-01-17 19:11:13 +00:00
Fred Drake
004d5e6880
Make reindent.py happy (convert everything to 4-space indents!).
2000-10-23 17:22:08 +00:00
Jeremy Hylton
7ae51bf82d
Remove "," from the list of always_safe characters. It is a reserved
...
character according to RFC 2396. Add some text to quote doc string
that explains the quoting rules better.
This closes SF Bug #114427 .
Add _fast_quote operation that uses a dictionary instead of a list
when the standard set of safe characters is used.
2000-09-14 16:59:07 +00:00
Jeremy Hylton
6102e29df2
fixes bug #111951
...
applies patch #101369 by Moshe Zadke
use explicit list of always safe characters instead of string.letters
add test case
2000-08-31 15:48:10 +00:00