From: Serhiy Storchaka Date: Sat, 10 Sep 2016 22:39:51 +0000 (+0300) Subject: Backported tests for issue #28070. X-Git-Tag: v2.7.13rc1~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b5f22d371c6220b1a2e7d0f084782e21b4fa6c4;p=thirdparty%2FPython%2Fcpython.git Backported tests for issue #28070. --- diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index 588042a85966..5725a99ad6d1 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -928,6 +928,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('$')