summaryrefslogtreecommitdiff
path: root/tests/backends
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2020-05-10 13:03:39 -0700
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-05-11 12:01:28 +0200
commitd6aff369ad33457ae2355b5b210faf1c4890ff35 (patch)
tree4c9d43311078bd81098e8a9fe9ff89fe007e921e /tests/backends
parent23f6fbdd93cd668740e3a1cd6d8c8259f380c0fe (diff)
downloaddjango-d6aff369ad33457ae2355b5b210faf1c4890ff35.tar.gz
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.
Diffstat (limited to 'tests/backends')
-rw-r--r--tests/backends/sqlite/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/backends/sqlite/tests.py b/tests/backends/sqlite/tests.py
index 3898c8f13c..c014519910 100644
--- a/tests/backends/sqlite/tests.py
+++ b/tests/backends/sqlite/tests.py
@@ -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'
)