Author: russellm Date: 2011-01-26 08:55:27 -0600 (Wed, 26 Jan 2011) New Revision: 15326
Modified: django/branches/releases/1.2.X/tests/regressiontests/fixtures_regress/tests.py Log: [1.2.X] Made a transaction test optional unless transactions are supported. Backport of r15325 from trunk. Modified: django/branches/releases/1.2.X/tests/regressiontests/fixtures_regress/tests.py =================================================================== --- django/branches/releases/1.2.X/tests/regressiontests/fixtures_regress/tests.py 2011-01-26 14:49:50 UTC (rev 15325) +++ django/branches/releases/1.2.X/tests/regressiontests/fixtures_regress/tests.py 2011-01-26 14:55:27 UTC (rev 15326) @@ -611,7 +611,8 @@ transaction.rollback() self.assertEqual(Thingy.objects.count(), 0) - def test_ticket_11101(self): - """Test that fixtures can be rolled back (ticket #11101).""" - ticket_11101 = transaction.commit_manually(self.ticket_11101) - ticket_11101() + if settings.DATABASES[DEFAULT_DB_ALIAS]['ENGINE'] != 'django.db.backends.mysql': + def test_ticket_11101(self): + """Test that fixtures can be rolled back (ticket #11101).""" + ticket_11101 = transaction.commit_manually(self.ticket_11101) + ticket_11101() -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.