summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/utils.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-11-30 17:30:09 (GMT)
committerGitHub <noreply@github.com>2018-11-30 17:30:09 (GMT)
commit7212148c95947b0fdfcb0c8e37d4357287bdb4bd (patch)
tree0a75ef9df2ba10888bf421689a70c793f5b3e84d /Lib/test/test_asyncio/utils.py
parentb062ba77b617b0f89b7ea25d14cc77c991462ad4 (diff)
downloadcpython-7212148c95947b0fdfcb0c8e37d4357287bdb4bd.zip
cpython-7212148c95947b0fdfcb0c8e37d4357287bdb4bd.tar.gz
cpython-7212148c95947b0fdfcb0c8e37d4357287bdb4bd.tar.bz2
bpo-35352: Cleanup test_asyncio/utils.py (GH-10831)
'here' variable is no longer needed.
Diffstat (limited to 'Lib/test/test_asyncio/utils.py')
-rw-r--r--Lib/test/test_asyncio/utils.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/Lib/test/test_asyncio/utils.py b/Lib/test/test_asyncio/utils.py
index 7084edf..8b23b01 100644
--- a/Lib/test/test_asyncio/utils.py
+++ b/Lib/test/test_asyncio/utils.py
@@ -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: