[Python-checkins] cpython (3.3): #12749: add a test for non-BMP ranges in character classes.
ezio.melotti
python-checkins at python.org
Sat Feb 23 07:40:53 CET 2013
http://hg.python.org/cpython/rev/489cfa062442
changeset: 82338:489cfa062442
branch: 3.3
parent: 82334:3eb693462891
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Sat Feb 23 08:40:07 2013 +0200
summary:
#12749: add a test for non-BMP ranges in character classes.
files:
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
--- a/Lib/test/test_re.py
+++ b/Lib/test/test_re.py
@@ -600,6 +600,7 @@
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]", "")
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list