1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Removed unnecessary commas in tests.

This commit is contained in:
Mariusz Felisiak
2022-12-21 11:41:29 +01:00
committed by GitHub
parent 2d676ee119
commit 3b24a3fa33
6 changed files with 8 additions and 10 deletions

View File

@@ -243,7 +243,7 @@ class SelectForUpdateTests(TransactionTestCase):
def test_for_update_sql_model_proxy_generated_of(self):
with transaction.atomic(), CaptureQueriesContext(connection) as ctx:
list(
CityCountryProxy.objects.select_related("country",).select_for_update(
CityCountryProxy.objects.select_related("country").select_for_update(
of=("country",),
)
)
@@ -422,7 +422,7 @@ class SelectForUpdateTests(TransactionTestCase):
with self.subTest(name=name):
with self.assertRaisesMessage(FieldError, msg % name):
with transaction.atomic():
Person.objects.select_related("born", "profile",).exclude(
Person.objects.select_related("born", "profile").exclude(
profile=None
).select_for_update(of=(name,)).get()