cpython: 842e75f0e592 (original) (raw)
Mercurial > cpython
changeset 103592:842e75f0e592 3.5
Backported tests for issue #28070. [#28070]
Serhiy Storchaka storchaka@gmail.com | |
---|---|
date | Sun, 11 Sep 2016 01:39:51 +0300 |
parents | 3ed2c0d55526 |
children | 208e1ed48cd3 75514816741a |
files | Lib/test/test_re.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-)[+] [-] Lib/test/test_re.py 3 |
line wrap: on
line diff
--- 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))[](#l1.7)
self.assertTrue(re.match('(?ixu) ' + lower_char, upper_char))[](#l1.8)
+ def test_dollar_matches_twice(self): "$ matches the end of string, and just before the terminating \n" pattern = re.compile('$')