Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.2.X] Made a transaction test optional unless transactions are supp…

…orted.

Backport of r15325 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15326 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 167d1cbdf5aa6f62d7ce6282fc73db3b5b6c7a76 1 parent 3af1bf8
@freakboy3742 freakboy3742 authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 tests/regressiontests/fixtures_regress/tests.py
View
9 tests/regressiontests/fixtures_regress/tests.py
@@ -611,7 +611,8 @@ def ticket_11101(self):
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()

0 comments on commit 167d1cb

Please sign in to comment.
Something went wrong with that request. Please try again.