-
Notifications
You must be signed in to change notification settings - Fork 348
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
Pytest-django , factory_boy InterfaceError: connection already closed #835
Comments
I need to mention that not all tests fail. It ONLY breaks a random test with django.db.utils.InterfaceError: connection already closed 8 of 10 times. In some rare cases it passes all tests. Could it be something about Python3.7+ specific issue? I never had any similar issues in python 3.6 |
I am inspecting the test suite in Django 3.0.5 right now and it seems to has no issue, there, with the latest plugins. I will do more research and i will come back with results before i create a test project. |
BTW the issue i run into was detected in Django 3.0.2. |
Ok it definitely seems to be ok with Django, pytest, pytest-django, factory_boy latest version. I will close this for now and if i find any results i will come back. |
Failed tests occur when running multiple tests that use @django_db or / and @django_db(transaction=True) complaining that connection is already closed.
On the other sode,running the single test that failed alone, works as expected. Affected version are:
Python 3.7
Django 3.0
pytest 5.4.1
pytest-cov 2.8.1
pytest-django 3.9.0
pytest-factoryboy 2.0.3
pytest-forked 1.1.3
The text was updated successfully, but these errors were encountered: