Django test transaction management error

I have a django project with 176 tests distributed in 3 directories. All test are OK in each directory when I launch the tests with the following command:

python manage.py test --noinput --parallel 0 <app_name>.tests.<test_directory_name>

If I launch all tests I get a transaction management error with the trace copied below. I do this using the command:

python manage.py test --noinput --parallel 0 <app_name>.tests

If I add --shuffle 2 in the command then all tests are OK.

Most of the test classes inherit form TestCase and load a .yaml fixture.Many tests use the same fixture. Most tests read database and make assertions. Some test do write in the database.
Do you have any suggestion on where to look?

The problem is that this error makes the testing tool of my IDE unusable!..