]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] bpo-35925: Skip SSL tests that fail due to weak external certs or old TLS ...
authorGregory P. Smith <greg@krypto.org>
Mon, 13 May 2019 20:16:34 +0000 (13:16 -0700)
committerGitHub <noreply@github.com>
Mon, 13 May 2019 20:16:34 +0000 (13:16 -0700)
commit7346a16ed584fd1e85359154820d286370b68648
treec5bb3922d7b3ae9cbadf10938a3aede63d28018d
parent24ff9a44ac5f0653df4c1d92c2a99fab286fcc15
[2.7] bpo-35925: Skip SSL tests that fail due to weak external certs or old TLS (GH-13124) (GH-13253)

Modern Linux distros such as Debian Buster have default OpenSSL system
configurations that reject connections to servers with weak certificates
by default. This causes our test suite run with external networking
resources enabled to skip these tests when they encounter such a
failure.

Fixing the network servers is a separate issue.
(cherry picked from commit 2cc0223)

Changes to test_ssl.py required as 2.7 has legacy protocol tests.

The test_httplib.py change is omitted from this backport as
self-signed.pythontest.net's certificate was updated and the
test_nntplib.py change is not applicable on 2.7.

Authored-by: Gregory P. Smith greg@krypto.org
Lib/test/test_ssl.py
Misc/NEWS.d/next/Tests/2019-05-06-18-29-54.bpo-35925.gwQPuC.rst [new file with mode: 0644]