[issue31320] test_ssl logs a traceback

2017-09-12 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fix Christian. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue31320] test_ssl logs a traceback

2017-09-05 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset c506403faf8dbfc8baf4212e8e2aedb7268acb5e by Mariatta (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31320: No traceback to sys.stderr in test_ssl (GH-3360) (GH-3369)

[issue31320] test_ssl logs a traceback

2017-09-05 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3378 ___ Python tracker ___

[issue31320] test_ssl logs a traceback

2017-09-05 Thread Christian Heimes
Christian Heimes added the comment: New changeset 305e56c27afce605e5d2f71903a966cf0bb95038 by Christian Heimes in branch 'master': bpo-31320: No traceback to sys.stderr in test_ssl (#3360) https://github.com/python/cpython/commit/305e56c27afce605e5d2f71903a966cf0bb95038 --

[issue31320] test_ssl logs a traceback

2017-09-05 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3373 ___ Python tracker ___ ___

[issue31320] test_ssl logs a traceback

2017-09-05 Thread Christian Heimes
Christian Heimes added the comment: The error occurs in the test case that uses a PROTOCOL_TLS_SERVER context for both client and server context. In that case, OpenSSL wrap_socket() fails internally and OpenSSL raises an OSError with errno 0. Simple fix: catch OSError in the client thread and

[issue31320] test_ssl logs a traceback

2017-09-04 Thread Martin Panter
Martin Panter added the comment: Not sure if you just want to hide the presence of the exception and traceback. But regarding the exception itself (OSError with errno 0), this is not ideal. From memory, you tend to get this when the connection is shut down insecurely at the TCP level. A

[issue31320] test_ssl logs a traceback

2017-09-01 Thread STINNER Victor
STINNER Victor added the comment: I'm running Fedora 26: haypo@selma$ ./python -m test.pythoninfo|grep -E 'ssl|platform' platform.architecture: 32bit ELF platform.platform: Linux-4.12.5-300.fc26.x86_64-x86_64-with-fedora-26-Twenty_Six platform.python_implementation: CPython ssl.HAS_SNI: True

[issue31320] test_ssl logs a traceback

2017-09-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't get such traceback here (Ubuntu 16.04, OpenSSL 1.0.2g). -- nosy: +pitrou ___ Python tracker ___

[issue31320] test_ssl logs a traceback

2017-09-01 Thread STINNER Victor
STINNER Victor added the comment: Python 2.7 doesn't seem to be affected. -- versions: +Python 3.6 ___ Python tracker ___

[issue31320] test_ssl logs a traceback

2017-09-01 Thread STINNER Victor
New submission from STINNER Victor: It would be nice to not log such traceback: haypo@selma$ ./python -m test test_ssl -m test.test_ssl.ThreadedTests.test_echo Run tests sequentially 0:00:00 load avg: 0.69 [1/1] test_ssl Exception in thread Thread-16: Traceback (most recent call last): File