-- changed findall to return empty strings instead of None

for undefined groups
This commit is contained in:
Fredrik Lundh 2000-08-09 09:14:35 +00:00
parent 8e6d571a7c
commit 5810064476
2 changed files with 12 additions and 11 deletions

View file

@ -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"