mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
Backported tests for issue #28070.
This commit is contained in:
parent
d92cecb9f1
commit
cc66a6528d
1 changed files with 3 additions and 0 deletions
|
|
@ -1270,6 +1270,9 @@ class ReTests(unittest.TestCase):
|
||||||
q = p.match(upper_char)
|
q = p.match(upper_char)
|
||||||
self.assertTrue(q)
|
self.assertTrue(q)
|
||||||
|
|
||||||
|
self.assertTrue(re.match('(?ixu) ' + upper_char, lower_char))
|
||||||
|
self.assertTrue(re.match('(?ixu) ' + lower_char, upper_char))
|
||||||
|
|
||||||
def test_dollar_matches_twice(self):
|
def test_dollar_matches_twice(self):
|
||||||
"$ matches the end of string, and just before the terminating \n"
|
"$ matches the end of string, and just before the terminating \n"
|
||||||
pattern = re.compile('$')
|
pattern = re.compile('$')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue