mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
#3231: re.compile fails with some bytes patterns
This commit is contained in:
parent
943f33912c
commit
22628c4d6a
3 changed files with 26 additions and 27 deletions
|
@ -661,12 +661,8 @@ xyzabc
|
|||
('^([ab]*?)(?<!(a))c', 'abc', SUCCEED, 'g1+"-"+g2', 'ab-None'),
|
||||
]
|
||||
|
||||
try:
|
||||
u = eval("u'\N{LATIN CAPITAL LETTER A WITH DIAERESIS}'")
|
||||
except SyntaxError:
|
||||
pass
|
||||
else:
|
||||
tests.extend([
|
||||
u = '\N{LATIN CAPITAL LETTER A WITH DIAERESIS}'
|
||||
tests.extend([
|
||||
# bug 410271: \b broken under locales
|
||||
(r'\b.\b', 'a', SUCCEED, 'found', 'a'),
|
||||
(r'(?u)\b.\b', u, SUCCEED, 'found', u),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue