[New-bugs-announce] [issue23053] test_urllib2_localnet fails without ssl

jan matejek report at bugs.python.org
Mon Dec 15 15:10:37 CET 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue23053>
_______________________________________


More information about the New-bugs-announce mailing list