Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cc66a65

Browse files
Backported tests for issue #28070.
1 parent d92cecb commit cc66a65

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/test/test_re.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,9 @@ def test_inline_flags(self):
12701270
q = p.match(upper_char)
12711271
self.assertTrue(q)
12721272

1273+
self.assertTrue(re.match('(?ixu) ' + upper_char, lower_char))
1274+
self.assertTrue(re.match('(?ixu) ' + lower_char, upper_char))
1275+
12731276
def test_dollar_matches_twice(self):
12741277
"$ matches the end of string, and just before the terminating \n"
12751278
pattern = re.compile('$')

0 commit comments

Comments
 (0)