]> granicus.if.org Git - python/commitdiff
Backported tests for issue #28070.
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 10 Sep 2016 22:39:51 +0000 (01:39 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 10 Sep 2016 22:39:51 +0000 (01:39 +0300)
Lib/test/test_re.py

index 588042a85966eae952a64b57bc1f58a4ce25a451..5725a99ad6d1ef2c0481998500836e2d573ee88e 100644 (file)
@@ -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('$')