Run python_d.exe -m test test_asyncio -m test_drain_raises -F on Windows. The test eventually fails after some repetitions.
The problem is that _call_connection_lost can be called multiple times, even after the socket by the proactortransport is closed. So it's calling close() on something that is already set to None.
I have a PR to fix it.
Run
python_d.exe -m test test_asyncio -m test_drain_raises -Fon Windows. The test eventually fails after some repetitions.The problem is that
_call_connection_lostcan be called multiple times, even after the socket by the proactortransport is closed. So it's callingclose()on something that is already set toNone.I have a PR to fix it.