[issue24930] fix

2015-08-24 Thread marcos paulo

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 
<http://bugs.python.org/issue24930>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24930] test_ssl broker was fixed

2015-08-24 Thread marcos paulo

Changes by marcos paulo :


--
title: fix -> test_ssl broker was fixed

___
Python tracker 
<http://bugs.python.org/issue24930>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24930] test_ssl broker was fixed

2015-08-24 Thread marcos paulo

marcos paulo added the comment:

the version that i ran the test, is python 2.7.10

--

___
Python tracker 
<http://bugs.python.org/issue24930>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24930] test_ssl broker was fixed

2015-08-24 Thread marcos paulo

marcos paulo added the comment:

anyway, this changes that i did, make this test more resilent!
this test now is more complete than before!

:-)

--

___
Python tracker 
<http://bugs.python.org/issue24930>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com