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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user