[New-bugs-announce] [issue24930] fix

marcos paulo report at bugs.python.org
Tue Aug 25 01:18:03 CEST 2015


New submission from marcos paulo:

Hello to everyone!!!

This test https://hg.python.org/cpython/file/2.7/Lib/test/test_ssl.py on method
ContextTests.test_options, is broker becouse has a error between lines 717 ~ 719;

On 717 line, has a comment about # OP_ALL | OP_NO_SSLv2 is the default value, but
it's not true, becouse this method is fail when i run it => 
py.test Lib/test/test_ssl.py -k ContextTests 
results ===>
https://hg.python.org/cpython/file/2.7/Lib/test/test_ssl.py#l717
*** AssertionError: 2164261887 != 2197816319L

I fixed this method and i wrote new cases about test_options using a lot of options 
from ssl.PROTOCOL, for example:
ssl.PROTOCOL_TLSv1                 
ssl.PROTOCOL_TLSv1_1                
ssl.PROTOCOL_TLSv1_2
ssl.PROTOCOL_SSLv2                
ssl.PROTOCOL_SSLv23
ssl.PROTOCOL_SSLv3  


on this test_options.patch, is the test fixed!

thanks
Att

:-)
marcosptf

----------
components: Library (Lib)
files: test_options.patch
keywords: patch
messages: 249078
nosy: marcosptf
priority: normal
severity: normal
status: open
title: fix
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file40249/test_options.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24930>
_______________________________________


More information about the New-bugs-announce mailing list