@@ -152,9 +152,10 @@ def bump_num(matchobj):
152152 assert sre .split ("(?::*)" , ":a:b::c" ) == ['' , 'a' , 'b' , 'c' ]
153153 assert sre .split ("(:)*" , ":a:b::c" ) == ['' , ':' , 'a' , ':' , 'b' , ':' , 'c' ]
154154 assert sre .split ("([b:]+)" , ":a:b::c" ) == ['' , ':' , 'a' , ':b::' , 'c' ]
155- # FIXME: group problem
156- # assert sre.split("(b)|(:+)", ":a:b::c") == \
157- # ['', None, ':', 'a', None, ':', '', 'b', None, '', None, '::', 'c']
155+ ## print sre.split("(b)|(:+)", ":a:b::c")
156+ ## print ['', None, ':', 'a', None, ':', '', 'b', None, '', None, '::', 'c']
157+ ## assert sre.split("(b)|(:+)", ":a:b::c") == \
158+ ## ['', None, ':', 'a', None, ':', '', 'b', None, '', None, '::', 'c']
158159 assert sre .split ("(?:b)|(?::+)" , ":a:b::c" ) == ['' , 'a' , '' , '' , 'c' ]
159160except AssertionError :
160161 raise TestFailed , "sre.split"
@@ -377,8 +378,8 @@ def bump_num(matchobj):
377378 if result == None :
378379 print '=== Fails on locale-sensitive match' , t
379380
380- # Try the match with UNICODE enabled, and check that it
381- # still succeeds.
381+ # Try the match with UNICODE locale enabled, and check
382+ # that it still succeeds.
382383 obj = sre .compile (pattern , sre .UNICODE )
383384 result = obj .search (s )
384385 if result == None :
0 commit comments