Files
langchain/libs/core/tests
Mason Daugherty a6b904fd5b fix(core): close internally created event loops in streaming tracers (#39222)
Fixed a resource leak in the `astream_events` and `astream_log`
streaming tracers: when constructed from synchronous code on Python
3.14+, an internally created event loop was never closed, causing a
`ResourceWarning: unclosed event loop` to be emitted at
garbage-collection time (and intermittent failures of warning-sensitive
tests such as `test_chat_prompt_template_variable_names`). The loop is
now closed when the handler is garbage collected.
2026-08-03 12:08:44 -04:00
..