[Python-checkins] CVS: python/dist/src/Lib/test test_sre.py,1.6,1.7
Fredrik Lundh
python-dev@python.org
Wed, 9 Aug 2000 02:14:38 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv31772/Lib/test
Modified Files:
test_sre.py
Log Message:
-- changed findall to return empty strings instead of None
for undefined groups
Index: test_sre.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_sre.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** test_sre.py 2000/08/03 16:29:50 1.6
--- test_sre.py 2000/08/09 09:14:35 1.7
***************
*** 178,181 ****
--- 178,182 ----
(":", ":"),
(":", "::")]
+ assert sre.findall("(a)|(b)", "abc") == [("a", ""), ("", "b")]
except AssertionError:
raise TestFailed, "sre.findall"