From 726a57d45f8606ad5a33f7c6bbd1e8c2f8cfbdef Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 22 Nov 2016 23:04:39 +0100 Subject: Issue #28765: _sre.compile() now checks the type of groupindex and indexgroup groupindex must a dictionary and indexgroup must be a tuple. Previously, indexgroup was a list. Use a tuple to reduce the memory usage. --- Lib/test/test_re.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_re.py') diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index 84131d2b92..6896b4dcbe 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -1506,7 +1506,7 @@ class ReTests(unittest.TestCase): long_overflow = 2**128 self.assertRaises(TypeError, re.finditer, "a", {}) with self.assertRaises(OverflowError): - _sre.compile("abc", 0, [long_overflow], 0, [], []) + _sre.compile("abc", 0, [long_overflow], 0, {}, ()) with self.assertRaises(TypeError): _sre.compile({}, 0, [], 0, [], []) -- cgit v1.2.1