diff options
| author | Barry Warsaw <barry@python.org> | 2012-11-20 17:11:46 -0500 |
|---|---|---|
| committer | Barry Warsaw <barry@python.org> | 2012-11-20 17:11:46 -0500 |
| commit | 554af19fab43cb120c73813f4dec4fb29da72654 (patch) | |
| tree | 58e943dbd95c0e7003138e39fe8aa7e9d54240e6 | |
| parent | b003f89d40059f2b375e1eb789f783e893cc3e0f (diff) | |
| parent | c467f1a4381ad7fefda7ca0d534c3409ab89384a (diff) | |
| download | cpython-554af19fab43cb120c73813f4dec4fb29da72654.tar.gz | |
null merge
| -rw-r--r-- | 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 index e7acbe174a..19cfa04508 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -419,6 +419,12 @@ class ReTests(unittest.TestCase): 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") |
