mirror of https://github.com/django/django.git
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
|
@ -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…
Reference in New Issue