Consistent test failures in test test_asyncio.test_streams.test_drain_raises on Windows · Issue #98703 · python/cpython · GitHub
Skip to content

Consistent test failures in test test_asyncio.test_streams.test_drain_raises on Windows #98703

Description

@Fidget-Spinner

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

3.10only security fixes3.11only security fixes3.12only security fixestopic-asynciotype-bugAn unexpected behavior, bug, or error

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions