bpo-36801: Temporarily fix regression in writer.drain() (#13330)
diff --git a/Lib/asyncio/streams.py b/Lib/asyncio/streams.py
index 146a338..2f0cbfd 100644
--- a/Lib/asyncio/streams.py
+++ b/Lib/asyncio/streams.py
@@ -439,9 +439,7 @@
# Wait for protocol.connection_lost() call
# Raise connection closing error if any,
# ConnectionResetError otherwise
- fut = self._protocol._get_close_waiter(self)
- await fut
- raise ConnectionResetError('Connection lost')
+ await sleep(0)
await self._protocol._drain_helper()