[issue23053] test_urllib2_localnet fails without ssl

2014-12-15 Thread jan matejek

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



[issue23053] test_urllib2_localnet fails without ssl

2014-12-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ebe8917189a3 by Benjamin Peterson in branch '2.7':
remove extra ssl imports (closes #23053)
https://hg.python.org/cpython/rev/ebe8917189a3

New changeset 1da9e9eaeae8 by Benjamin Peterson in branch '3.4':
remove extra ssl imports (closes #23053)
https://hg.python.org/cpython/rev/1da9e9eaeae8

New changeset 8214675f6385 by Benjamin Peterson in branch 'default':
merge 3.4 (#23053)
https://hg.python.org/cpython/rev/8214675f6385

--
nosy: +python-dev
resolution:  - fixed
stage:  - resolved
status: open - closed

___
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