summaryrefslogtreecommitdiff
path: root/tests/bulk_create
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bulk_create')
-rw-r--r--tests/bulk_create/tests.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/bulk_create/tests.py b/tests/bulk_create/tests.py
index 65d0f9ba8c..97a8f82117 100644
--- a/tests/bulk_create/tests.py
+++ b/tests/bulk_create/tests.py
@@ -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)