mirror of
https://github.com/django/django.git
synced 2025-12-15 21:45:20 +00:00
Refs #33476 -- Refactored code to strictly match 88 characters line length.
This commit is contained in:
parent
9c19aff7c7
commit
7119f40c98
404 changed files with 5944 additions and 2842 deletions
|
|
@ -522,7 +522,10 @@ class SelectForUpdateTests(TransactionTestCase):
|
|||
|
||||
@skipIfDBFeature("supports_select_for_update_with_limit")
|
||||
def test_unsupported_select_for_update_with_limit(self):
|
||||
msg = "LIMIT/OFFSET is not supported with select_for_update on this database backend."
|
||||
msg = (
|
||||
"LIMIT/OFFSET is not supported with select_for_update on this database "
|
||||
"backend."
|
||||
)
|
||||
with self.assertRaisesMessage(NotSupportedError, msg):
|
||||
with transaction.atomic():
|
||||
list(Person.objects.all().order_by("pk").select_for_update()[1:2])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue