From eadece2865f76eaf96b23b1d76801b7bb64a7b3b Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Sat, 23 Feb 2013 08:40:07 +0200 Subject: #12749: add a test for non-BMP ranges in character classes. --- Lib/test/test_re.py | 1 + 1 file changed, 1 insertion(+) 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]", "") -- cgit v0.12