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
81d9feee
Commit
81d9feee
authored
Nov 05, 2014
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Plain Diff
merge 3.4
parents
141579c8
b811a978
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
Lib/test/test_urllib2net.py
Lib/test/test_urllib2net.py
+2
-10
No files found.
Lib/test/test_urllib2net.py
View file @
81d9feee
...
...
@@ -8,13 +8,6 @@ import urllib.error
import
urllib.request
import
sys
try
:
import
ssl
except
ImportError
:
ssl
=
None
requires_ssl
=
unittest
.
skipIf
(
ssl
is
None
,
"SSL not supported"
)
support
.
requires
(
"network"
)
TIMEOUT
=
60
# seconds
...
...
@@ -167,14 +160,13 @@ class OtherNetworkTests(unittest.TestCase):
self
.
assertEqual
(
res
.
geturl
(),
"http://www.pythontest.net/index.html#frag"
)
@
requires_ssl
def
test_redirect_url_withfrag
(
self
):
redirect_url_with_frag
=
"http://
bit.ly/1iSHToT
"
redirect_url_with_frag
=
"http://
www.pythontest.net/redir/with_frag/
"
with
support
.
transient_internet
(
redirect_url_with_frag
):
req
=
urllib
.
request
.
Request
(
redirect_url_with_frag
)
res
=
urllib
.
request
.
urlopen
(
req
)
self
.
assertEqual
(
res
.
geturl
(),
"http
s://docs.python.org/3.4/glossary.html#term-global-interpreter-lock
"
)
"http
://www.pythontest.net/elsewhere/#frag
"
)
def
test_custom_headers
(
self
):
url
=
"http://www.example.com"
...
...
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