1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Improved the API of set_autocommit.

This commit is contained in:
Aymeric Augustin
2013-03-11 15:10:58 +01:00
parent f32100939e
commit e654180ce2
8 changed files with 24 additions and 24 deletions

View File

@@ -684,8 +684,8 @@ class TestTicket11101(TransactionTestCase):
@skipUnlessDBFeature('supports_transactions')
def test_ticket_11101(self):
"""Test that fixtures can be rolled back (ticket #11101)."""
transaction.set_autocommit(autocommit=False)
transaction.set_autocommit(False)
try:
self.ticket_11101()
finally:
transaction.set_autocommit(autocommit=True)
transaction.set_autocommit(True)