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
d3b3bba2
Commit
d3b3bba2
authored
Mar 15, 2014
by
R David Murray
Browse files
Options
Browse Files
Download
Plain Diff
Merge: #20933: At least one place maps 'test' to 'localhost'...fix test.
parents
1aca78da
fdbe918e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Lib/test/test_urllib2.py
Lib/test/test_urllib2.py
+2
-1
No files found.
Lib/test/test_urllib2.py
View file @
d3b3bba2
...
@@ -1227,7 +1227,8 @@ class HandlerTests(unittest.TestCase):
...
@@ -1227,7 +1227,8 @@ class HandlerTests(unittest.TestCase):
self
.
assertTrue
(
_proxy_bypass_macosx_sysconf
(
host
,
bypass
),
self
.
assertTrue
(
_proxy_bypass_macosx_sysconf
(
host
,
bypass
),
'expected bypass of %s to be True'
%
host
)
'expected bypass of %s to be True'
%
host
)
# Check hosts that should not trigger the proxy bypass
# Check hosts that should not trigger the proxy bypass
for
host
in
(
'abc.foo.bar'
,
'bar.com'
,
'127.0.0.2'
,
'10.11.0.1'
,
'test'
):
for
host
in
(
'abc.foo.bar'
,
'bar.com'
,
'127.0.0.2'
,
'10.11.0.1'
,
'notinbypass'
):
self
.
assertFalse
(
_proxy_bypass_macosx_sysconf
(
host
,
bypass
),
self
.
assertFalse
(
_proxy_bypass_macosx_sysconf
(
host
,
bypass
),
'expected bypass of %s to be False'
%
host
)
'expected bypass of %s to be False'
%
host
)
...
...
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