Skip to content
Merged
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
5 changes: 5 additions & 0 deletions tests/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,11 @@ def close():
# send data
await self.loop.run_in_executor(None,
ssl_sock.send, b'hello')
# After gh-105836 run_in_executor may resolve without
# yielding. This is very noticeable when PYTHONASYNCIODEBUG
# is set. Hence, we yield explicitly so that the sent data
# can reach the SSL buffer before close/resume_reading.
await asyncio.sleep(0)
# schedule a proactive transport close which will trigger
# the flushing process to retrieve the remaining data
self.loop.call_soon(close)
Expand Down
Loading