[Python-checkins] python/dist/src/Lib/test re_tests.py,1.30,1.30.6.1
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Sun, 23 Feb 2003 17:23:05 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv25159/test
Modified Files:
Tag: release22-maint
re_tests.py
Log Message:
Backport:
Fix from SF patch #633359 by Greg Chapman for SF bug #610299:
The problem is in sre_compile.py: the call to
_compile_charset near the end of _compile_info forgets to
pass in the flags, so that the info charset is not compiled
with re.U. (The info charset is used when searching to find
the first character at which a match could start; it is not
generated for patterns beginning with a repeat like '\w{1}'.)
Index: re_tests.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/re_tests.py,v
retrieving revision 1.30
retrieving revision 1.30.6.1
diff -C2 -d -r1.30 -r1.30.6.1
*** re_tests.py 9 Dec 2001 16:13:15 -0000 1.30
--- re_tests.py 24 Feb 2003 01:23:03 -0000 1.30.6.1
***************
*** 658,660 ****
--- 658,661 ----
(r'\b.\b', 'a', SUCCEED, 'found', 'a'),
(r'(?u)\b.\b', u, SUCCEED, 'found', u),
+ (r'(?u)\w', u, SUCCEED, 'found', u),
])