From: Serhiy Storchaka Date: Sat, 10 Sep 2016 22:39:51 +0000 (+0300) Subject: Backported tests for issue #28070. X-Git-Tag: v3.6.0b1~79^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc66a6528d0f756a23da29e31b2e6332def03a18;p=python Backported tests for issue #28070. --- diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index 7a741416b4..f415f3f8c4 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -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('$')