-
Notifications
You must be signed in to change notification settings - Fork 45
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
Warning for every test since SQLAlchemy==1.3.17 #36
Comments
The I've noticed that removing the |
(NB: there's also a |
The linked pull request attempts to address these warnings but only removes them fully for |
Thanks for the report and the initial discussion here! This is one of those deep SA internal issues that I find to be somewhat inscrutable. I think I'd like to try to isolate the specific operation in the plugin that's raising this warning, and then try to get to the bottom of whether it's due to an actual problem (e.g. we're not rolling back sessions before closing them) or whether it's a side effect of the neccesary amount of kludgery in this plugin (in which case we should just figure out a way to suppress this warning). |
I also noticed this warning, in all my tests, which require db_session. Is there a way I can help with fixing it? |
Description
In
SQLAlchemy==1.3.17
, a change was made (https://docs.sqlalchemy.org/en/13/changelog/changelog_13.html#change-7a6fdf5e0595f654572e4f8edb32b48c).When using
pytest
,flask
,sqlalchemy
andpytest-flask-sqlalchemy
, (requirements.txt) the following warning occurs for every test.This warning does not happen in the normal execution of the program.
Expected behavior
No warnings present.
How to reproduce
This issue can be reproduced with the code example here.
pytest output
The text was updated successfully, but these errors were encountered: