diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-05-10 13:03:39 -0700 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-05-11 12:01:28 +0200 |
commit | d6aff369ad33457ae2355b5b210faf1c4890ff35 (patch) | |
tree | 4c9d43311078bd81098e8a9fe9ff89fe007e921e /tests/backends | |
parent | 23f6fbdd93cd668740e3a1cd6d8c8259f380c0fe (diff) | |
download | django-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.py | 2 |
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' ) |