mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #30116 -- Simplified regex match group access with Match.__getitem__().
The method has been available since Python 3.6. The shorter syntax is also marginally faster.
This commit is contained in:
committed by
Mariusz Felisiak
parent
23f6fbdd93
commit
d6aff369ad
@@ -131,7 +131,7 @@ class SchemaTests(TransactionTestCase):
|
||||
self.assertIsNotNone(match)
|
||||
self.assertEqual(
|
||||
'integer NOT NULL PRIMARY KEY AUTOINCREMENT',
|
||||
match.group(1),
|
||||
match[1],
|
||||
'Wrong SQL used to create an auto-increment column on SQLite'
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user