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

test: allow aiohttp to leak HTTPS connections #1152

Merged
merged 3 commits into from Mar 20, 2024

Conversation

jpivarski
Copy link
Member

Because of aio-libs/aiohttp#1115, the aiohttp library can let an HTTPS connection dangle for one event longer than pytest or Python allows, triggering an "unclosed transport" ResourceError.

We do want to be sticklers for open file handles in our tests, so the filterwarnings entry for this was made very narrow, to only include this case.

@lobis, did you know about this? Is the alternative of having FSSpecSource do

await asyncio.sleep(0)

when it goes out of a context manager viable?

@jpivarski jpivarski requested a review from lobis February 27, 2024 23:13
@agoose77 agoose77 changed the title tests: allow aiohttp to leak HTTPS connections test: allow aiohttp to leak HTTPS connections Feb 28, 2024
@jpivarski jpivarski enabled auto-merge (squash) March 20, 2024 16:53
@jpivarski jpivarski merged commit 00353d0 into main Mar 20, 2024
21 checks passed
@jpivarski jpivarski deleted the jpivarski/allow-aiohttp-to-leak-https-connections branch March 20, 2024 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant