Backported tests for issue #28070.

This commit is contained in:
Serhiy Storchaka 2016-09-11 01:39:51 +03:00
parent d92cecb9f1
commit cc66a6528d
1 changed files with 3 additions and 0 deletions

View File

@ -1270,6 +1270,9 @@ class ReTests(unittest.TestCase):
q = p.match(upper_char)
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):
"$ matches the end of string, and just before the terminating \n"
pattern = re.compile('$')