Skip to content

test_asyncio.test_streams raises a ResourceWarning#116112

@Eclips4

Description

@Eclips4

Bug report

Bug description:

./python.exe-mtesttest_asyncio.test_streamsUsingrandomseed: 41514628170:00:00loadavg: 28.75Run1testsequentially0:00:00loadavg: 28.75 [1/1] test_asyncio.test_streams/Users/admin/Projects/cpython/Lib/asyncio/streams.py:410: ResourceWarning: unclosed<StreamWritertransport=<_SelectorSocketTransportclosingfd=12read=idlewrite=<idle, bufsize=0>>reader=<StreamReadertransport=<_SelectorSocketTransportclosingfd=12read=idlewrite=<idle, bufsize=0>>>>warnings.warn(f"unclosed {self!r}", ResourceWarning) ==Testsresult: SUCCESS==1testOK. Totalduration: 1.5secTotaltests: run=69Totaltestfiles: run=1/1Result: SUCCESS

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtopic-asynciotype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions