mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Fixed too ambitious "nothing to repeat" check. Closes bug #114033.
This commit is contained in:
parent
5c0b43d1e2
commit
13ac9926ac
4 changed files with 6 additions and 3 deletions
|
|
@ -615,10 +615,13 @@ xyzabc
|
|||
# bug 112468: various expected syntax errors
|
||||
('(', '', 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'),
|
||||
# bug 115618: negative lookahead
|
||||
(r'(?<!abc)(d.f)', 'abcdefdof', SUCCEED, 'found', 'dof'),
|
||||
# bug 116251: character class bug
|
||||
(r'[\w-]+', 'laser_beam', SUCCEED, 'found', 'laser_beam'),
|
||||
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue