-
Notifications
You must be signed in to change notification settings - Fork 25
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
TransactionManagementError: The rollback flag doesn't work outside of an 'atomic' block. #3
Comments
I have looked into this for a little bit and I have a theory why this happens, but no real solution right now. I can reproduce this error by commenting out the overridden This will produce
The commented out I believe Django's TestCase wraps each test into an atomic block and I assume that this also points to Long story short: django-dbconn-retry will need to learn how to handle atomic blocks correctly and I need to study the semantics more. I mean, this project is marked as version |
I encountered the same problem |
Hi, I'm having the same issue. Is there any solution? |
but it'd be good to get to the bottom of it |
Using this app causes an error during teardown in one of our tests.
The test is triggering warnings like the following, which are likely causing the atomic block to be left:
The error during teardown (using pytest and pytest-django):
The text was updated successfully, but these errors were encountered: