#28263: TestCase breaks for databases that don't support savepoints ---------------------------------------------+------------------------ Reporter: Lokesh Dokara | Owner: nobody Type: Bug | Status: new Component: Testing framework | Version: 1.11 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | ---------------------------------------------+------------------------ {{{TestCase}}}s with more than one test fail with {{{ TransactionManagementError: An error occurred in the current transaction. You can't execute queries until the end of the 'atomic' block. }}} when {{{uses_savepoints = False}}} and {{{supports_transactions = True}}}.
To reproduce this issue set {{{uses_savepoints = False}}} for any of the backends other than MySQL with MyISAM as MyISAM engine doesn't transactions as well. This setting can be set in any of the following files according to the database used. * {{{django/db/backends/postgresql/features.py}}} * {{{django/db/backends/mysql/features.py}}} * {{{django/db/backends/sqlite3/features.py}}} I feel this case is not handled in the implementation of {{{TestCase}}}. -- Ticket URL: <https://code.djangoproject.com/ticket/28263> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/051.a4102e0cc99633d6f853af84cba26598%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.