Skip to content

0.8.0 version regression: "aiohttp-client-cache" prevents Pytest session from finishing (tests pass, but session never exits) #146

Answered by JWCook
simon-liebehenschel asked this question in Q&A
Discussion options

You must be logged in to vote

I think it was actually the opposite problem: the database connection wasn't getting closed, and leaving that connection open seems to cause problems when the test session ends, presumably when it's deleting resources from memory. I made some changes in #148 that I believe will fix this. Changes are in main. Give that a try and let me know if that works for you.

I still don't 100% understand the problem, though, because it doesn't seem to occur within the destructor of any of the classes within aiohttp-client-cache. Also, it appears to be a threading lock that's stuck, not an async lock. It's in threading._shutdown(), but I couldn't get any error context beyond that. In aiohttp-client-cac…

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@JWCook
Comment options

@simon-liebehenschel
Comment options

@JWCook
Comment options

@JWCook
Comment options

Answer selected by simon-liebehenschel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants