(original) (raw)
changeset: 103593:afc0d4478083 branch: 2.7 parent: 103584:168fe15798c6 user: Serhiy Storchaka storchaka@gmail.com date: Sun Sep 11 01:39:51 2016 +0300 files: Lib/test/test_re.py description: Backported tests for issue #28070. diff -r 168fe15798c6 -r afc0d4478083 Lib/test/test_re.py --- a/Lib/test/test_re.py Sat Sep 10 16:24:31 2016 -0400 +++ b/Lib/test/test_re.py Sun Sep 11 01:39:51 2016 +0300 @@ -928,6 +928,9 @@ 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('$') /storchaka@gmail.com