]> 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 7a741416b48c74dad593d699e6a65c2fbdd6e7e3..f415f3f8c4b988d5c4f5e1dd98783d86542745ec 100644 (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('$')