gh-108303: Move all certificates to Lib/test/certdata/ (#109489)

This commit is contained in:
Nikita Sobolev 2023-09-16 19:47:18 +03:00 committed by GitHub
parent 929cc4e4a0
commit e57ecf6bbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 31 additions and 28 deletions

View file

@ -21,11 +21,13 @@ support.requires_working_socket(module=True)
here = os.path.dirname(__file__)
# Self-signed cert file for 'localhost'
CERT_localhost = os.path.join(here, 'keycert.pem')
CERT_localhost = os.path.join(here, 'certdata', 'keycert.pem')
# Self-signed cert file for 'fakehostname'
CERT_fakehostname = os.path.join(here, 'keycert2.pem')
CERT_fakehostname = os.path.join(here, 'certdata', 'keycert2.pem')
# Self-signed cert file for self-signed.pythontest.net
CERT_selfsigned_pythontestdotnet = os.path.join(here, 'selfsigned_pythontestdotnet.pem')
CERT_selfsigned_pythontestdotnet = os.path.join(
here, 'certdata', 'selfsigned_pythontestdotnet.pem',
)
# constants for testing chunked encoding
chunked_start = (