Skip to content

test_asyncio.test_streams raises a ResourceWarning #116112

Closed
@Eclips4

Description

@Eclips4

Bug report

Bug description:

./python.exe -m test test_asyncio.test_streams

Using random seed: 4151462817
0:00:00 load avg: 28.75 Run 1 test sequentially
0:00:00 load avg: 28.75 [1/1] test_asyncio.test_streams
/Users/admin/Projects/cpython/Lib/asyncio/streams.py:410: ResourceWarning: unclosed <StreamWriter transport=<_SelectorSocketTransport closing fd=12 read=idle write=<idle, bufsize=0>> reader=<StreamReader transport=<_SelectorSocketTransport closing fd=12 read=idle write=<idle, bufsize=0>>>>
  warnings.warn(f"unclosed {self!r}", ResourceWarning)

== Tests result: SUCCESS ==

1 test OK.

Total duration: 1.5 sec
Total tests: run=69
Total test files: run=1/1
Result: 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