Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2ed621 commit 067bebfCopy full SHA for 067bebf
1 file changed
Lib/test/test_sre.py
@@ -152,10 +152,8 @@ def bump_num(matchobj):
152
assert sre.split("(?::*)", ":a:b::c") == ['', 'a', 'b', 'c']
153
assert sre.split("(:)*", ":a:b::c") == ['', ':', 'a', ':', 'b', ':', 'c']
154
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']
+ assert sre.split("(b)|(:+)", ":a:b::c") == \
+ ['', None, ':', 'a', None, ':', '', 'b', None, '', None, '::', 'c']
159
assert sre.split("(?:b)|(?::+)", ":a:b::c") == ['', 'a', '', '', 'c']
160
except AssertionError:
161
raise TestFailed, "sre.split"
0 commit comments