Closed cheginit closed 6 months ago
It appears that aiosqlite 0.20 changed its queue implementation in https://github.com/omnilib/aiosqlite/pull/271.
On this end, I'm using some of aiosqlite's internals to force its connection thread to end in order to avoid hanging if the application exits without using the CachedSession
contextmanager or calling .close()
(see #173, #187, #189).
So that's not their fault. I'll get that fixed soon.
@cheginit Test out the changes in main when you get the chance, and let me know if that fixes the issue for you.
I just checked with main
, and it runs without throwing the warning. Thank you.
The problem
In my package, I have two tests for checking caching. When I run the tests with
pytest
, I get this warning:As the traceback shows, this warning is suppressed and only shows up with
pytest
and not when running the code.Expected behavior
I am not sure if this behavior is intentional or not.
Steps to reproduce the behavior
Workarounds
N/A
Environment
0.11.0
3.11