You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Django application that has many tests and we moved onto pytest recently.
Everything was fine until we needed to reset a virtual environment and we realized all remaining tests were failing with TransactionManagementError after one assertion failed. Previously, it would just point one failing test, the one with a failing assertion. All others would run without any transaction errors.
To test this, I fresh installed our env, without pin-pointing pytest's version and it installs version 5.4.1.
Then I modified a working test so that it fails, and got many failing tests, one with the assertion and all others with TransactionManagementError.
Than ran pip install pytest=5.3.5. manually, ran the suite again, and only one test was failing - the one with the wrong assertion.
I can't show code, nor the tests, nor the environment because this is still a closed-source application and I don't want to get into legal issues, but thought it might be important to talk with you guys about this as this seems like a bug introduced in the march's releases.
Environment that I am allowed to share:
pytest 5.3.5 - which works
pytest 5.4.1 - which doesn't work
pytest-django 3.8.0
MacOS Mojave 10.14.6
Python 3.7.5
Django 2.1.15
a detailed description of the bug or suggestion
output of pip list from the virtual environment you are using
pytest and operating system versions
minimal example if possible
The text was updated successfully, but these errors were encountered:
Hi!
I have a Django application that has many tests and we moved onto pytest recently.
Everything was fine until we needed to reset a virtual environment and we realized all remaining tests were failing with
TransactionManagementError
after one assertion failed. Previously, it would just point one failing test, the one with a failing assertion. All others would run without any transaction errors.To test this, I fresh installed our env, without pin-pointing
pytest
's version and it installs version 5.4.1.Then I modified a working test so that it fails, and got many failing tests, one with the assertion and all others with
TransactionManagementError
.Than ran
pip install pytest=5.3.5.
manually, ran the suite again, and only one test was failing - the one with the wrong assertion.I can't show code, nor the tests, nor the environment because this is still a closed-source application and I don't want to get into legal issues, but thought it might be important to talk with you guys about this as this seems like a bug introduced in the march's releases.
Environment that I am allowed to share:
pytest 5.3.5 - which works
pytest 5.4.1 - which doesn't work
pytest-django 3.8.0
MacOS Mojave 10.14.6
Python 3.7.5
Django 2.1.15
pip list
from the virtual environment you are usingThe text was updated successfully, but these errors were encountered: