mirror of https://github.com/python/cpython
-- SRE 0.9.8: now that the bug is fixed, I might as well enable
the test again...
This commit is contained in:
parent
c2ed621d75
commit
067bebfe2d
|
@ -152,10 +152,8 @@ try:
|
|||
assert sre.split("(?::*)", ":a:b::c") == ['', 'a', 'b', 'c']
|
||||
assert sre.split("(:)*", ":a:b::c") == ['', ':', 'a', ':', 'b', ':', 'c']
|
||||
assert sre.split("([b:]+)", ":a:b::c") == ['', ':', 'a', ':b::', 'c']
|
||||
## print sre.split("(b)|(:+)", ":a:b::c")
|
||||
## print ['', None, ':', 'a', None, ':', '', 'b', None, '', None, '::', 'c']
|
||||
## assert sre.split("(b)|(:+)", ":a:b::c") == \
|
||||
## ['', None, ':', 'a', None, ':', '', 'b', None, '', None, '::', 'c']
|
||||
assert sre.split("(b)|(:+)", ":a:b::c") == \
|
||||
['', None, ':', 'a', None, ':', '', 'b', None, '', None, '::', 'c']
|
||||
assert sre.split("(?:b)|(?::+)", ":a:b::c") == ['', 'a', '', '', 'c']
|
||||
except AssertionError:
|
||||
raise TestFailed, "sre.split"
|
||||
|
|
Loading…
Reference in New Issue