diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2000-08-09 09:14:35 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2000-08-09 09:14:35 (GMT) |
commit | 58100644763c172253925c1883ae43a69cfebae9 (patch) | |
tree | fc5834080a03107c5cb6be80a030ea6541f0d9f3 /Lib | |
parent | 8e6d571a7c7853a98e032859e79a624528ec8842 (diff) | |
download | cpython-58100644763c172253925c1883ae43a69cfebae9.zip cpython-58100644763c172253925c1883ae43a69cfebae9.tar.gz cpython-58100644763c172253925c1883ae43a69cfebae9.tar.bz2 |
-- changed findall to return empty strings instead of None
for undefined groups
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_sre.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_sre.py b/Lib/test/test_sre.py index 2f16d29..29fafda 100644 --- a/Lib/test/test_sre.py +++ b/Lib/test/test_sre.py @@ -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" |