Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 067bebf

Browse files
author
Fredrik Lundh
committed
-- SRE 0.9.8: now that the bug is fixed, I might as well enable
the test again...
1 parent c2ed621 commit 067bebf

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Lib/test/test_sre.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,8 @@ 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-
## 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']
155+
assert sre.split("(b)|(:+)", ":a:b::c") == \
156+
['', None, ':', 'a', None, ':', '', 'b', None, '', None, '::', 'c']
159157
assert sre.split("(?:b)|(?::+)", ":a:b::c") == ['', 'a', '', '', 'c']
160158
except AssertionError:
161159
raise TestFailed, "sre.split"

0 commit comments

Comments
 (0)