]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37322: Fix ResourceWarning and exception handling in test (GH-25553)
authorChristian Heimes <christian@python.org>
Sat, 24 Apr 2021 07:17:54 +0000 (09:17 +0200)
committerGitHub <noreply@github.com>
Sat, 24 Apr 2021 07:17:54 +0000 (09:17 +0200)
commitc8666cfa7cdc48915a14cd16095a69029720736a
treec415158f1eebbe94e7201106fb6b2819bd18c107
parentf05c2aed7e25087122613b51f152919c79641f66
bpo-37322: Fix ResourceWarning and exception handling in test (GH-25553)

Revert 73ea546, increase logging, and improve stability of test.

Handle all OSErrors in a single block. OSError also takes care of
SSLError and socket's connection errors.

Partly reverts commit fb7e750. The
threaded connection handler must not raise an unhandled exception.
Lib/test/test_ssl.py