bpo-35352: Cleanup test_asyncio/utils.py (GH-10831)

'here' variable is no longer needed.
This commit is contained in:
Victor Stinner 2018-11-30 18:30:09 +01:00 committed by GitHub
parent b062ba77b6
commit 7212148c95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -156,14 +156,8 @@ class SSLWSGIServerMixin:
# 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, ONLYKEY)
certfile = os.path.join(here, ONLYCERT)
context = ssl.SSLContext()
context.load_cert_chain(certfile, keyfile)
context.load_cert_chain(ONLYCERT, ONLYKEY)
ssock = context.wrap_socket(request, server_side=True)
try: