Skip to content

Commit 7212148

Browse files
authored
bpo-35352: Cleanup test_asyncio/utils.py (GH-10831)
'here' variable is no longer needed.
1 parent b062ba7 commit 7212148

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Lib/test/test_asyncio/utils.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,8 @@ def finish_request(self, request, client_address):
156156
# contains the ssl key and certificate files) differs
157157
# between the stdlib and stand-alone asyncio.
158158
# Prefer our own if we can find it.
159-
here = os.path.join(os.path.dirname(__file__), '..', 'tests')
160-
if not os.path.isdir(here):
161-
here = os.path.join(os.path.dirname(os.__file__),
162-
'test', 'test_asyncio')
163-
keyfile = os.path.join(here, ONLYKEY)
164-
certfile = os.path.join(here, ONLYCERT)
165159
context = ssl.SSLContext()
166-
context.load_cert_chain(certfile, keyfile)
160+
context.load_cert_chain(ONLYCERT, ONLYKEY)
167161

168162
ssock = context.wrap_socket(request, server_side=True)
169163
try:

0 commit comments

Comments
 (0)