[3.12] gh-108303: Move all certificates to Lib/test/certdata/ (GH-109489) (#109682)

* gh-108303: Move all certificates to `Lib/test/certdata/` (GH-109489)
(cherry picked from commit e57ecf6bbc)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>

Python 3.12 backport: update also `test_nntplib`.

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: T. Wouters <thomas@python.org>
This commit is contained in:
Miss Islington (bot) 2023-10-10 22:38:18 +02:00 committed by GitHub
parent 5b168fdd6f
commit c2d542b42c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 32 additions and 29 deletions

View file

@ -2170,7 +2170,7 @@ class HTTPHandlerTest(BaseTest):
sslctx = None
else:
here = os.path.dirname(__file__)
localhost_cert = os.path.join(here, "keycert.pem")
localhost_cert = os.path.join(here, "certdata", "keycert.pem")
sslctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
sslctx.load_cert_chain(localhost_cert)