summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_re.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-09-10 22:39:51 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-09-10 22:39:51 (GMT)
commitcc66a6528d0f756a23da29e31b2e6332def03a18 (patch)
treec0013f2147d50c24500894b7835e70e3c4cdad13 /Lib/test/test_re.py
parentd92cecb9f1d3ef887424b65561d9f93d33db41ef (diff)
downloadcpython-cc66a6528d0f756a23da29e31b2e6332def03a18.zip
cpython-cc66a6528d0f756a23da29e31b2e6332def03a18.tar.gz
cpython-cc66a6528d0f756a23da29e31b2e6332def03a18.tar.bz2
Backported tests for issue #28070.
Diffstat (limited to 'Lib/test/test_re.py')
-rw-r--r--Lib/test/test_re.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py
index 7a74141..f415f3f 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('$')