mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Removed unused variables that are overwritten.
This commit is contained in:
parent
5890d6ab03
commit
ebf34c3cdc
12 changed files with 4 additions and 16 deletions
|
@ -206,7 +206,6 @@ class BulkCreateTests(TestCase):
|
|||
|
||||
@skipUnlessDBFeature('can_return_ids_from_bulk_insert')
|
||||
def test_set_pk_and_insert_single_item(self):
|
||||
countries = []
|
||||
with self.assertNumQueries(1):
|
||||
countries = Country.objects.bulk_create([self.data[0]])
|
||||
self.assertEqual(len(countries), 1)
|
||||
|
@ -214,7 +213,6 @@ class BulkCreateTests(TestCase):
|
|||
|
||||
@skipUnlessDBFeature('can_return_ids_from_bulk_insert')
|
||||
def test_set_pk_and_query_efficiency(self):
|
||||
countries = []
|
||||
with self.assertNumQueries(1):
|
||||
countries = Country.objects.bulk_create(self.data)
|
||||
self.assertEqual(len(countries), 4)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue