From d6aff369ad33457ae2355b5b210faf1c4890ff35 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 10 May 2020 13:03:39 -0700 Subject: 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. --- tests/backends/sqlite/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/backends/sqlite') 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' ) -- cgit v1.3