Skip to content

Commit

Permalink
Made a transaction test optional unless transactions are supported.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15325 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Jan 26, 2011
1 parent a9b4f2a commit 69a803a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/regressiontests/fixtures_regress/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ def ticket_11101(self):
transaction.rollback()
self.assertEqual(Thingy.objects.count(), 0)

@skipUnlessDBFeature('supports_transactions')
def test_ticket_11101(self):
"""Test that fixtures can be rolled back (ticket #11101)."""
ticket_11101 = transaction.commit_manually(self.ticket_11101)
Expand Down

0 comments on commit 69a803a

Please sign in to comment.