Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 0 additions & 73 deletions Lib/test/test_asyncio/keycert3.pem

This file was deleted.

78 changes: 0 additions & 78 deletions Lib/test/test_asyncio/pycacert.pem

This file was deleted.

15 changes: 0 additions & 15 deletions Lib/test/test_asyncio/ssl_cert.pem

This file was deleted.

16 changes: 0 additions & 16 deletions Lib/test/test_asyncio/ssl_key.pem

This file was deleted.

10 changes: 2 additions & 8 deletions Lib/test/test_asyncio/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def data_file(filename):
fullname = os.path.join(support.TEST_HOME_DIR, filename)
if os.path.isfile(fullname):
return fullname
fullname = os.path.join(os.path.dirname(__file__), filename)
fullname = os.path.join(os.path.dirname(__file__), '..', filename)
if os.path.isfile(fullname):
return fullname
raise FileNotFoundError(filename)
Expand Down Expand Up @@ -156,14 +156,8 @@ def finish_request(self, request, client_address):
# contains the ssl key and certificate files) differs
# between the stdlib and stand-alone asyncio.
# Prefer our own if we can find it.
here = os.path.join(os.path.dirname(__file__), '..', 'tests')
if not os.path.isdir(here):
here = os.path.join(os.path.dirname(os.__file__),
'test', 'test_asyncio')
keyfile = os.path.join(here, 'ssl_key.pem')
certfile = os.path.join(here, 'ssl_cert.pem')
context = ssl.SSLContext()
context.load_cert_chain(certfile, keyfile)
context.load_cert_chain(ONLYCERT, ONLYKEY)

ssock = context.wrap_socket(request, server_side=True)
try:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Modify test_asyncio to use the certificate set from the test directory.