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
a14414df
Commit
a14414df
authored
Nov 02, 2014
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Plain Diff
Merge heads
parents
8a03896c
07df6555
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Lib/test/test_urllib.py
Lib/test/test_urllib.py
+5
-1
No files found.
Lib/test/test_urllib.py
View file @
a14414df
...
...
@@ -10,7 +10,10 @@ import unittest
from
unittest.mock
import
patch
from
test
import
support
import
os
import
ssl
try
:
import
ssl
except
ImportError
:
ssl
=
None
import
sys
import
tempfile
from
nturl2path
import
url2pathname
,
pathname2url
...
...
@@ -380,6 +383,7 @@ Content-Type: text/html; charset=iso-8859-1
with
support
.
check_warnings
((
''
,
DeprecationWarning
)):
urllib
.
request
.
URLopener
()
@
unittest
.
skipUnless
(
ssl
,
"ssl module required"
)
def
test_cafile_and_context
(
self
):
context
=
ssl
.
create_default_context
()
with
self
.
assertRaises
(
ValueError
):
...
...
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