mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
-- changed findall to return empty strings instead of None
for undefined groups
This commit is contained in:
parent
8e6d571a7c
commit
5810064476
2 changed files with 12 additions and 11 deletions
|
@ -177,6 +177,7 @@ try:
|
|||
assert sre.findall("(:)(:*)", "a:b::c:::d") == [(":", ""),
|
||||
(":", ":"),
|
||||
(":", "::")]
|
||||
assert sre.findall("(a)|(b)", "abc") == [("a", ""), ("", "b")]
|
||||
except AssertionError:
|
||||
raise TestFailed, "sre.findall"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue