Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2f01e239
Commit
2f01e239
authored
Dec 26, 2012
by
Senthil Kumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #16702: Skip proxies for localhost in urllib2_localnet tests
parent
cf4710c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
Lib/test/test_urllib2_localnet.py
Lib/test/test_urllib2_localnet.py
+8
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_urllib2_localnet.py
View file @
2f01e239
...
...
@@ -5,7 +5,9 @@ import urllib2
import
BaseHTTPServer
import
unittest
import
hashlib
from
test
import
test_support
mimetools
=
test_support
.
import_module
(
'mimetools'
,
deprecated
=
True
)
threading
=
test_support
.
import_module
(
'threading'
)
...
...
@@ -346,6 +348,12 @@ class TestUrlopen(BaseTestCase):
for transparent redirection have been written.
"""
def
setUp
(
self
):
proxy_handler
=
urllib2
.
ProxyHandler
({})
opener
=
urllib2
.
build_opener
(
proxy_handler
)
urllib2
.
install_opener
(
opener
)
super
(
TestUrlopen
,
self
).
setUp
()
def
start_server
(
self
,
responses
):
handler
=
GetRequestHandler
(
responses
)
...
...
Misc/NEWS
View file @
2f01e239
...
...
@@ -164,6 +164,9 @@ Core and Builtins
Library
-------
- Issue #16702: test_urllib2_localnet tests now correctly ignores proxies for
localhost tests.
- Issue #16713: Fix the parsing of tel url with params using urlparse module.
- Issue #16443: Add docstrings to regular expression match objects.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment