New submission from jan matejek:

The pep 476 commit to Python 2.7 [1] adds unconditional "import ssl" to 
test_urllib2_localnet.py. This causes the test to fail with an ImportError if 
ssl module is not built.

Note that like 5 lines later, ssl is imported conditionally, and all the 
relevant tests are configured to skip if ssl is not present. So to fix this, 
all that is needed is to remove the "import ssl" line. Attached patch does just 
that.

[1] https://hg.python.org/cpython/rev/fb83916c3ea1

----------
components: Tests
files: python-2.7-urllib2-localnet-ssl.patch
keywords: patch
messages: 232663
nosy: matejcik
priority: normal
severity: normal
status: open
title: test_urllib2_localnet fails without ssl
type: behavior
versions: Python 2.7
Added file: 
http://bugs.python.org/file37454/python-2.7-urllib2-localnet-ssl.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23053>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to