Bug: ResourceWarning: Unclosed <MemoryObjectReceiveStream> with AsyncTestClient and anyio>=4.4 #3834
Closed
1 of 4 tasks
Labels
Bug 🐛
This is something that is not working as expected
Description
I started running tests with
-W error
and one of the (intermittent) warnings turned to errors wasUnclosed <MemoryObjectReceiveStream>
. After lots of digging I managed to reduce it to the MCVE below:test_httpx_async_client
passes with bothanyio==4.3.0
andanyio==4.4.0
test_litestar_async_client
passes only withanyio==4.3.0
(and previous versions)Related
anyio
change: agronholm/anyio#715URL to code causing the issue
No response
MCVE
Steps to reproduce
`python -W error -m pytest test_resourcewarning.py`
Screenshots
"![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)"
Logs
No response
Litestar Version
2.12.1
Platform
The text was updated successfully, but these errors were encountered: