Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing eof when writer cancelled #7764

Merged
merged 14 commits into from
Nov 3, 2023
Prev Previous commit
Next Next commit
Fixes
Dreamsorcerer committed Oct 30, 2023
commit 358e4c5d88edcbdf0e000b731d09ca25810a844e
3 changes: 2 additions & 1 deletion tests/test_proxy_functional.py
Original file line number Diff line number Diff line change
@@ -407,7 +407,8 @@ async def test_proxy_http_acquired_cleanup(proxy_test_server: Any, loop: Any) ->

assert 0 == len(conn._acquired)

resp = await sess.get(url, proxy=proxy.url)
async with sess.get(url, proxy=proxy.url) as resp:
pass
assert resp.closed

assert 0 == len(conn._acquired)