[Python-checkins] python/dist/src/Lib/test test_sre.py,1.39,1.40
loewis@users.sourceforge.net
loewis@users.sourceforge.net
Sat, 19 Apr 2003 01:37:27 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv7931/Lib/test
Modified Files:
test_sre.py
Log Message:
Patch #681152: Support escaped Unicode characters in classes. Fixes #612074.
Will backport to 2.2.
Index: test_sre.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_sre.py,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -d -r1.39 -r1.40
*** test_sre.py 14 Apr 2003 17:59:33 -0000 1.39
--- test_sre.py 19 Apr 2003 08:37:24 -0000 1.40
***************
*** 97,100 ****
--- 97,104 ----
test(r"""sre.search('(a|b)*?c', 10000*'ab'+'cd').end(0)""", None, RuntimeError)
+ # 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'