mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #10676 -- Make transaction nop routine used during testing accept any args/kwargs it might be called with. Thanks seanl.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10248 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a018eb45ac
commit
78b5c65844
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ real_leave_transaction_management = transaction.leave_transaction_management
|
|||
real_savepoint_commit = transaction.savepoint_commit
|
||||
real_savepoint_rollback = transaction.savepoint_rollback
|
||||
|
||||
def nop(x=None):
|
||||
def nop(*args, **kwargs):
|
||||
return
|
||||
|
||||
def disable_transaction_methods():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue