summaryrefslogtreecommitdiff
path: root/django/test/testcases.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/test/testcases.py')
-rw-r--r--django/test/testcases.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py
index 4c1d778795..0f879d4222 100644
--- a/django/test/testcases.py
+++ b/django/test/testcases.py
@@ -929,8 +929,7 @@ class TransactionTestCase(SimpleTestCase):
"against more than one ordered values")
return self.assertEqual(list(items), values, msg=msg)
- def assertNumQueries(self, num, func=None, *args, **kwargs):
- using = kwargs.pop("using", DEFAULT_DB_ALIAS)
+ def assertNumQueries(self, num, func=None, *args, using=DEFAULT_DB_ALIAS, **kwargs):
conn = connections[using]
context = _AssertNumQueriesContext(self, num, conn)