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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user