Berker Peksag
cacbc17d67
Replace example.com with pythontest.net in test_getcode of test_urllibnet
2016-05-07 16:41:39 +03:00
Benjamin Peterson
b206473ef8
give urllib.urlopen a context parameter ( closes #22927 )
2014-11-23 20:55:24 -06:00
Ned Deily
c727533cf5
Issue #20939 : Use www.example.com instead of www.python.org to avoid test
...
failures when ssl is not present.
2014-03-26 23:25:02 -07:00
Ned Deily
a146df8dd6
Issue #20939 : Fix test_geturl failure in test_urllibnet due to
...
new redirect of http://www.python.org/ to https://www.python.org .
2014-03-15 13:14:15 -07:00
Benjamin Peterson
0b1faeab6f
update logo url ( #20695 )
2014-02-19 22:51:08 -05:00
Serhiy Storchaka
e0ed2d75c8
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface.
2014-01-16 18:59:17 +02:00
Zachary Ware
1f70221b86
Issue #19572 : More silently skipped tests explicitly skipped.
2013-12-10 14:09:20 -06:00
Antoine Pitrou
a4d58d26a1
Avoid failing in test_urllibnet.test_bad_address when some overzealous
...
DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test
is now skipped instead.
2011-07-08 19:14:19 +02:00
Senthil Kumaran
1b7f9e53b3
Fix issue8582: urllib.urlretrieve fails with ValueError: Invalid format string
2010-05-01 08:01:56 +00:00
Florent Xicluna
6257a7bbb2
Replace catch_warnings with check_warnings when it makes sense. Use assertRaises context manager to simplify some tests.
2010-03-31 22:01:03 +00:00
Ezio Melotti
a2d4653740
#7092 : silence py3k warnings for deprecated modules
2010-01-30 07:22:54 +00:00
Ezio Melotti
b0f5adc3f4
use assert[Not]IsInstance where appropriate
2010-01-24 16:58:36 +00:00
Senthil Kumaran
ce8e33a095
Reverting the Revision: 77368. I committed Flox's big patch for tests by
...
mistake. ( It may come in for sure tough)
2010-01-08 19:04:16 +00:00
Senthil Kumaran
3ddc435af6
Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox
2010-01-08 18:41:40 +00:00
Benjamin Peterson
5c8da86f3a
convert usage of fail* to assert*
2009-06-30 22:57:08 +00:00
Antoine Pitrou
cc5b64a70a
modify other occurrence of test_bad_address
2008-12-15 00:39:51 +00:00
Brett Cannon
672237dc6c
warnings.catch_warnings() now returns a list or None instead of the custom
...
WarningsRecorder object. This makes the API simpler to use as no special object
must be learned.
Closes issue 3781.
Review by Benjamin Peterson.
2008-09-09 00:49:16 +00:00
Brett Cannon
8bb8fa5dd6
Handle urllib's renaming for Python 3.0:
...
* Deprecate urllib.urlopen() in favor of urllib2.urlopen() for 3.0.
* Update docs to mention split/rename of the module and deprecation of
urlopen().
Changes to lib2to3 are in a separate commit. Work is for issue #2885 .
2008-07-02 01:57:08 +00:00
Neal Norwitz
5be3067742
Prevent this test from failing if there are transient network problems
...
by retrying the host for up to 3 times.
2008-01-26 05:54:48 +00:00
Georg Brandl
9b0d46db11
#1178141 : add addinfourl.code to get http status code from urllib.
2008-01-20 11:43:03 +00:00
Neal Norwitz
a29fc29f19
Try to fix several networking tests. The problem is that if hosts have
...
a search path setup, some of these hosts resolve to the wrong address.
By appending a period to the hostname, the hostname should only resolve
to what we want it to resolve to. Hopefully this doesn't break different bots.
2006-06-11 20:25:56 +00:00
Tim Peters
0aab002057
SF patch 809915: Fix bogus address to hopefully always break.
...
test_bad_address(): Recover from that VeriSign thought it would boost
its corporate coffers to start resolving http://www.sadflkjsasadf.com/ .
Bugfix candidate -- although the bug is more VeriSign's than Python's!
2003-09-20 22:16:26 +00:00
Jeremy Hylton
bd9f520907
Reflow long line.
2003-07-17 16:31:00 +00:00
Tim Peters
f545baa0cc
Whitespace normalization.
2003-06-15 23:26:30 +00:00
Tim Peters
813cec9a62
test_fileno(): Skip this test on Windows.
2003-05-16 15:35:10 +00:00