[Python-checkins] CVS: python/dist/src/Lib/test re_tests.py,1.24,1.25
Fredrik Lundh
python-dev@python.org
Sat, 7 Oct 2000 10:38:26 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv2906/Lib/test
Modified Files:
re_tests.py
Log Message:
Fixed too ambitious "nothing to repeat" check. Closes bug #114033.
Index: re_tests.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/re_tests.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** re_tests.py 2000/10/07 10:16:19 1.24
--- re_tests.py 2000/10/07 17:38:23 1.25
***************
*** 616,619 ****
--- 616,621 ----
('(', '', SYNTAX_ERROR),
('[\\41]', '!', SUCCEED, 'found', '!'),
+ # bug 114033: nothing to repeat
+ (r'(x?)?', 'x', SUCCEED, 'found', 'x'),
# bug 115040: rescan if flags are modified inside pattern
(r' (?x)foo ', 'foo', SUCCEED, 'found', 'foo'),
***************
*** 622,624 ****
--- 624,627 ----
# bug 116251: character class bug
(r'[\w-]+', 'laser_beam', SUCCEED, 'found', 'laser_beam'),
+
]