=== modified file 'django/test/testcases.py'
|
|
|
37 | 37 | real_rollback = transaction.rollback |
38 | 38 | real_enter_transaction_management = transaction.enter_transaction_management |
39 | 39 | real_leave_transaction_management = transaction.leave_transaction_management |
40 | | real_savepoint_commit = transaction.savepoint_commit |
41 | | real_savepoint_rollback = transaction.savepoint_rollback |
42 | 40 | real_managed = transaction.managed |
43 | 41 | |
44 | 42 | def nop(*args, **kwargs): |
… |
… |
|
47 | 45 | def disable_transaction_methods(): |
48 | 46 | transaction.commit = nop |
49 | 47 | transaction.rollback = nop |
50 | | transaction.savepoint_commit = nop |
51 | | transaction.savepoint_rollback = nop |
52 | 48 | transaction.enter_transaction_management = nop |
53 | 49 | transaction.leave_transaction_management = nop |
54 | 50 | transaction.managed = nop |
… |
… |
|
56 | 52 | def restore_transaction_methods(): |
57 | 53 | transaction.commit = real_commit |
58 | 54 | transaction.rollback = real_rollback |
59 | | transaction.savepoint_commit = real_savepoint_commit |
60 | | transaction.savepoint_rollback = real_savepoint_rollback |
61 | 55 | transaction.enter_transaction_management = real_enter_transaction_management |
62 | 56 | transaction.leave_transaction_management = real_leave_transaction_management |
63 | 57 | transaction.managed = real_managed |