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
969fbe3d
Commit
969fbe3d
authored
Aug 05, 2010
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't crash when the _ssl module isn't built
parent
33e5935b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Lib/test/test_ssl.py
Lib/test/test_ssl.py
+5
-1
No files found.
Lib/test/test_ssl.py
View file @
969fbe3d
...
...
@@ -60,7 +60,11 @@ class BasicTests(unittest.TestCase):
def
skip_if_broken_ubuntu_ssl
(
func
):
# We need to access the lower-level wrapper in order to create an
# implicit SSL context without trying to connect or listen.
import
_ssl
try
:
import
_ssl
except
ImportError
:
# The returned function won't get executed, just ignore the error
pass
@
functools
.
wraps
(
func
)
def
f
(
*
args
,
**
kwargs
):
try
:
...
...
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