3 | | I also met the problem while executing some tests, and I managed to overcome it by extending {{{django.test.testcases.TestCase}} and overwriting the {{{_enter_atomics}}} and {{{_rollback_atomics}}} methods so no transactions are started or rolled back for databases with {{{uses_savepoints = False}}} and {{{supports_transactions = True}}}, but that means I have to be careful not to modify the data, as it won't be rolled back. Using {{{TransactionTestCase}}}, which would not create any transactions, is not an option for me, as I can't truncate other databases the tests depend on. |
| 3 | I also met the problem while executing some tests, and I managed to overcome it by extending {{{django.test.testcases.TestCase}}} and overwriting the {{{_enter_atomics}}} and {{{_rollback_atomics}}} methods so no transactions are started or rolled back for databases with {{{uses_savepoints = False}}} and {{{supports_transactions = True}}}, but that means I have to be careful not to modify the data, as it won't be rolled back. Using {{{TransactionTestCase}}}, which would not create any transactions, is not an option for me, as I can't truncate other databases the tests depend on. |