[Python-checkins] python/dist/src/Lib/test test_sre.py,1.35,1.35.6.1
loewis@users.sourceforge.net
loewis@users.sourceforge.net
Sat, 19 Apr 2003 01:39:07 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv8605/Lib/test
Modified Files:
Tag: release22-maint
test_sre.py
Log Message:
Patch #681152: Support escaped unicode characters in classes. Fixes 612074.
Index: test_sre.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_sre.py,v
retrieving revision 1.35
retrieving revision 1.35.6.1
diff -C2 -d -r1.35 -r1.35.6.1
*** test_sre.py 9 Dec 2001 16:13:15 -0000 1.35
--- test_sre.py 19 Apr 2003 08:39:04 -0000 1.35.6.1
***************
*** 79,82 ****
--- 79,86 ----
test(r"""sre.match(r'(a)|(b)', 'b').span(1)""", (-1, -1))
+ # bug 612074
+ pat=u"["+sre.escape(u"\u2039")+u"]"
+ test(r"""sre.compile(pat) and 1""", 1, None)
+
if verbose:
print 'Running tests on sre.sub'