diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-02-23 06:40:07 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-02-23 06:40:07 (GMT) |
commit | eadece2865f76eaf96b23b1d76801b7bb64a7b3b (patch) | |
tree | 08616df8618c402bd9db3656879f1301b50515a8 /Lib/test | |
parent | 4ad8eec09e68f32720f49ecc20831328cf70c9c1 (diff) | |
download | cpython-eadece2865f76eaf96b23b1d76801b7bb64a7b3b.zip cpython-eadece2865f76eaf96b23b1d76801b7bb64a7b3b.tar.gz cpython-eadece2865f76eaf96b23b1d76801b7bb64a7b3b.tar.bz2 |
#12749: add a test for non-BMP ranges in character classes.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_re.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index f96c3f9..ef19164 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -600,6 +600,7 @@ class ReTests(unittest.TestCase): self.assertIsNotNone(re.match(r"[\U%08x]" % i, chr(i))) self.assertIsNotNone(re.match(r"[\U%08x0]" % i, chr(i)+"0")) self.assertIsNotNone(re.match(r"[\U%08xz]" % i, chr(i)+"z")) + self.assertIsNotNone(re.match(r"[\U0001d49c-\U0001d4b5]", "\U0001d49e")) self.assertRaises(re.error, re.match, r"[\911]", "") self.assertRaises(re.error, re.match, r"[\x1z]", "") self.assertRaises(re.error, re.match, r"[\u123z]", "") |