summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_re.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-09-10 22:39:01 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-09-10 22:39:01 (GMT)
commitd65cd091e9c10cd55c3e19c45930c539d896c61a (patch)
treed27d2304f4ce428fffa4106949f974ae31f349a2 /Lib/test/test_re.py
parent99a6570295de5684bfac767b4d35c72f8f36612d (diff)
downloadcpython-d65cd091e9c10cd55c3e19c45930c539d896c61a.zip
cpython-d65cd091e9c10cd55c3e19c45930c539d896c61a.tar.gz
cpython-d65cd091e9c10cd55c3e19c45930c539d896c61a.tar.bz2
Issue #28070: Fixed parsing inline verbose flag in regular expressions.
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 2322ca9..afe8738 100644
--- a/Lib/test/test_re.py
+++ b/Lib/test/test_re.py
@@ -1276,6 +1276,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('$')