summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_re.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-10-24 19:02:58 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-10-24 19:02:58 (GMT)
commitbe80fc9a843e3c51d1030d3eab52d6287e5aef3a (patch)
treeeb5b7b5fd1dcf66a70a7cc566772d7ad581dbeb9 /Lib/test/test_re.py
parentb82a3dc2409e68dbd20d1991ba2e9d1c490c67a3 (diff)
downloadcpython-be80fc9a843e3c51d1030d3eab52d6287e5aef3a.zip
cpython-be80fc9a843e3c51d1030d3eab52d6287e5aef3a.tar.gz
cpython-be80fc9a843e3c51d1030d3eab52d6287e5aef3a.tar.bz2
Issue #19327: Fixed the working of regular expressions with too big charset.
Diffstat (limited to 'Lib/test/test_re.py')
-rw-r--r--Lib/test/test_re.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py
index 2104437..f093812 100644
--- a/Lib/test/test_re.py
+++ b/Lib/test/test_re.py
@@ -428,6 +428,9 @@ class ReTests(unittest.TestCase):
"\u2222").group(1), "\u2222")
self.assertEqual(re.match("([\u2222\u2223])",
"\u2222", re.UNICODE).group(1), "\u2222")
+ r = '[%s]' % ''.join(map(chr, range(256, 2**16, 255)))
+ self.assertEqual(re.match(r,
+ "\uff01", re.UNICODE).group(), "\uff01")
def test_big_codesize(self):
# Issue #1160