[Python-checkins] cpython (merge 3.3 -> default): Merge test from issue #1160.
antoine.pitrou
python-checkins at python.org
Tue Nov 20 22:38:14 CET 2012
http://hg.python.org/cpython/rev/10c1f9e05f4f
changeset: 80534:10c1f9e05f4f
parent: 80530:a82ee9a1457a
parent: 80533:8b73a069ae4f
user: Antoine Pitrou <solipsis at pitrou.net>
date: Tue Nov 20 22:37:04 2012 +0100
summary:
Merge test from issue #1160.
files:
Lib/test/test_re.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py
--- a/Lib/test/test_re.py
+++ b/Lib/test/test_re.py
@@ -419,6 +419,12 @@
self.assertEqual(re.match("([\u2222\u2223])",
"\u2222", re.UNICODE).group(1), "\u2222")
+ def test_big_codesize(self):
+ # Issue #1160
+ r = re.compile('|'.join(('%d'%x for x in range(10000))))
+ self.assertIsNotNone(r.match('1000'))
+ self.assertIsNotNone(r.match('9999'))
+
def test_anyall(self):
self.assertEqual(re.match("a.b", "a\nb", re.DOTALL).group(0),
"a\nb")
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list