diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-09-10 22:39:01 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-09-10 22:39:01 (GMT) |
commit | d65cd091e9c10cd55c3e19c45930c539d896c61a (patch) | |
tree | d27d2304f4ce428fffa4106949f974ae31f349a2 /Lib/test/test_re.py | |
parent | 99a6570295de5684bfac767b4d35c72f8f36612d (diff) | |
download | cpython-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.py | 3 |
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('$') |