From b25e1ad253a4d96aea31a7a3fb78522ea354f43a Mon Sep 17 00:00:00 2001 From: Fredrik Lundh Date: Thu, 22 Mar 2001 15:50:10 +0000 Subject: sre 2.1b2 update: - take locale into account for word boundary anchors (#410271) - restored 2.0's *? behaviour (#233283, #408936 and others) - speed up re.sub/re.subn --- Lib/test/re_tests.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Lib/test/re_tests.py') diff --git a/Lib/test/re_tests.py b/Lib/test/re_tests.py index aacd916267..7c5dc890d9 100755 --- a/Lib/test/re_tests.py +++ b/Lib/test/re_tests.py @@ -639,3 +639,14 @@ xyzabc # bug 130748: ^* should be an error (nothing to repeat) (r'^*', '', SYNTAX_ERROR), ] + +try: + u = eval("u'\N{LATIN CAPITAL LETTER A WITH DIAERESIS}'") +except SyntaxError: + pass +else: + tests.extend([ + # bug 410271: \b broken under locales + (r'\b.\b', 'a', SUCCEED, 'found', 'a'), + (r'(?u)\b.\b', u, SUCCEED, 'found', u), + ]) -- cgit v1.2.1