mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Refs #23919 -- Replaced kwargs.pop() with keyword-only arguments.
This commit is contained in:
parent
0ec4dc91e0
commit
8838d4dd49
41 changed files with 147 additions and 243 deletions
|
|
@ -42,12 +42,6 @@ class QuerySetSetOperationTests(TestCase):
|
|||
self.assertEqual(len(list(qs1.union(qs2, all=True))), 20)
|
||||
self.assertEqual(len(list(qs1.union(qs2))), 10)
|
||||
|
||||
def test_union_bad_kwarg(self):
|
||||
qs1 = Number.objects.all()
|
||||
msg = "union() received an unexpected keyword argument 'bad'"
|
||||
with self.assertRaisesMessage(TypeError, msg):
|
||||
self.assertEqual(len(list(qs1.union(qs1, bad=True))), 20)
|
||||
|
||||
def test_limits(self):
|
||||
qs1 = Number.objects.all()
|
||||
qs2 = Number.objects.all()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue