[issue13898] Ignored exception in test_ssl

2012-01-28 Thread Nadeem Vawda
New submission from Nadeem Vawda : While running test_ssl in verbose mode, I noticed the following exception: [...] test_protocol_sslv3 (test.test_ssl.ThreadedTests) Connecting to an SSLv3 server with various client options ... SSLv3->SSLv3 CERT_NONE SSLv3->SSLv3 CERT_OPTI

[issue13898] Ignored exception in test_ssl

2012-01-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: What is the OpenSSL version? (printed at the beginning of test_ssl) Having an exception here is quite normal: the test checks that a certain (client protocol, server protocol) combination fails. However, a SSLError is expected rather than an OSError. ---

[issue13898] Ignored exception in test_ssl

2012-01-28 Thread Nadeem Vawda
Nadeem Vawda added the comment: > What is the OpenSSL version? test_ssl: testing with 'OpenSSL 1.0.0e 6 Sep 2011' (1, 0, 0, 5, 15) under Linux ('debian', 'wheezy/sid', '') HAS_SNI = True -- ___ Python tracker

[issue13898] Ignored exception in test_ssl

2012-01-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > What is the OpenSSL version? > > test_ssl: testing with 'OpenSSL 1.0.0e 6 Sep 2011' (1, 0, 0, 5, 15) > under Linux ('debian', 'wheezy/sid', '') > HAS_SNI = True For the record, it works here under 'OpenSSL 1.0.0d 8 Feb 2011'

[issue13898] Ignored exception in test_ssl

2012-01-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: The changelog between 1.0.0d and 1.0.0e doesn't seem to list anything which could affect this test: *) Fix bug where CRLs with nextUpdate in the past are sometimes accepted by initialising X509_STORE_CTX properly. (CVE-2011-3207) [Kaspar Brand ]

[issue13898] Ignored exception in test_ssl

2012-01-28 Thread Nadeem Vawda
Nadeem Vawda added the comment: Might it be a distribution-specific issue, then? I'm running Ubuntu and IIRC you're using Mageia? -- ___ Python tracker ___ _

[issue13898] Ignored exception in test_ssl

2012-01-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Might it be a distribution-specific issue, then? I'm running Ubuntu and > IIRC you're using Mageia? Yes, I'm using Mageia. It would be nice if you could take a look at Ubuntu's or Debian's OpenSSL patches (if any). -- ___

[issue13898] Ignored exception in test_ssl

2012-01-28 Thread Nadeem Vawda
Nadeem Vawda added the comment: I can't see anything in the Ubuntu patches (available from ) that relate to networking or handshakes, so maybe it's not that. I could be wrong, though - I've never used OpenSSL myself. --

[issue13898] Ignored exception in test_ssl

2013-03-03 Thread Ezio Melotti
Ezio Melotti added the comment: I see these failures too on Ubuntu, both in verbose and non-verbose mode: $ ./python -m test -v test_ssl == CPython 3.4.0a0 (default:1c71882938eb+, Mar 3 2013, 14:21:46) [GCC 4.6.3] == Linux-3.2.0-38-generic-i686-with-debian-wheezy-sid little-endian == /home/wo

[issue13898] Ignored exception in test_ssl

2013-03-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I guess we could handle the ConnectionResetError as a SSLError for the purpose of those tests. What probably happens is that OpenSSL versions, instead of answering "sorry, I can't talk to you", brutally reset the connections. -- __

[issue13898] Ignored exception in test_ssl

2013-03-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ezio, Nadeem, do you want to provide a patch? -- priority: normal -> low versions: +Python 2.7, Python 3.4 ___ Python tracker ___ __

[issue13898] Ignored exception in test_ssl

2013-03-03 Thread Ezio Melotti
Ezio Melotti added the comment: The first traceback comes from try_protocol_combo(ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_SSLv23, False, client_options=ssl.OP_NO_SSLv3) in test_protocol_sslv3. The test is marked with the @skip_if_broken_ubuntu_ssl decorator, but this

[issue13898] Ignored exception in test_ssl

2013-03-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- priority: normal -> low versions: +Python 2.7, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mai

[issue13898] Ignored exception in test_ssl

2013-03-03 Thread Nadeem Vawda
Nadeem Vawda added the comment: This change fixes the problem (and doesn't break anything else that I can see): --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -979,7 +979,7 @@ self.sslconn = self.server.context.wrap_socket( self.sock, serve

[issue13898] Ignored exception in test_ssl

2013-03-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, it's certainly reasonable. You could add a comment explaining the issue. -- ___ Python tracker ___

[issue13898] Ignored exception in test_ssl

2013-03-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset fa24c1382bd3 by Nadeem Vawda in branch '3.2': Issue #13898: test_ssl no longer prints a spurious stack trace on Ubuntu. http://hg.python.org/cpython/rev/fa24c1382bd3 -- nosy: +python-dev ___ Python tracke

[issue13898] Ignored exception in test_ssl

2013-03-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 77cbb3ba5d40 by Nadeem Vawda in branch '3.3': Issue #13898: test_ssl no longer prints a spurious stack trace on Ubuntu. http://hg.python.org/cpython/rev/77cbb3ba5d40 -- ___ Python tracker

[issue13898] Ignored exception in test_ssl

2013-03-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 69f737f410f0 by Nadeem Vawda in branch 'default': Issue #13898: test_ssl no longer prints a spurious stack trace on Ubuntu. http://hg.python.org/cpython/rev/69f737f410f0 -- ___ Python tracker

[issue13898] Ignored exception in test_ssl

2013-03-03 Thread Nadeem Vawda
Nadeem Vawda added the comment: > You could add a comment explaining the issue. Done. This doesn't seem to affect 2.7. Marking as fixed in 3.2/3.3/3.4. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: -Python 2.7

[issue13898] Ignored exception in test_ssl

2013-03-03 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the fix -- that solved the problem here too. -- ___ Python tracker ___ ___ Python-bugs-list