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
b77983d2
Commit
b77983d2
authored
Oct 10, 2014
by
Berker Peksag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #21456: Skip two tests in test_urllib2net.py if _ssl module not present.
Patch by Remi Pointel.
parent
cfb2a0a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
Lib/test/test_urllib2net.py
Lib/test/test_urllib2net.py
+5
-0
Misc/NEWS
Misc/NEWS
+6
-0
No files found.
Lib/test/test_urllib2net.py
View file @
b77983d2
...
...
@@ -7,11 +7,14 @@ import socket
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
...
...
@@ -156,6 +159,7 @@ class OtherNetworkTests(unittest.TestCase):
## self._test_urls(urls, self._extra_handlers()+[bauth, dauth])
@
requires_ssl
def
test_urlwithfrag
(
self
):
urlwith_frag
=
"https://docs.python.org/2/glossary.html#glossary"
with
support
.
transient_internet
(
urlwith_frag
):
...
...
@@ -164,6 +168,7 @@ class OtherNetworkTests(unittest.TestCase):
self
.
assertEqual
(
res
.
geturl
(),
"https://docs.python.org/2/glossary.html#glossary"
)
@
requires_ssl
def
test_redirect_url_withfrag
(
self
):
redirect_url_with_frag
=
"http://bit.ly/1iSHToT"
with
support
.
transient_internet
(
redirect_url_with_frag
):
...
...
Misc/NEWS
View file @
b77983d2
...
...
@@ -55,6 +55,12 @@ Library
- Issue #22448: Improve canceled timer handles cleanup to prevent
unbound memory usage. Patch by Joshua Moore-Oliva.
Tests
-----
- Issue #21456: Skip two tests in test_urllib2net.py if _ssl module not
present. Patch by Remi Pointel.
Build
-----
...
...
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