From 58100644763c172253925c1883ae43a69cfebae9 Mon Sep 17 00:00:00 2001 From: Fredrik Lundh Date: Wed, 9 Aug 2000 09:14:35 +0000 Subject: -- changed findall to return empty strings instead of None for undefined groups --- Lib/test/test_sre.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/test/test_sre.py') diff --git a/Lib/test/test_sre.py b/Lib/test/test_sre.py index 2f16d291d8..29fafda838 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" -- cgit v1.2.1