commit | 0b5f22d371c6220b1a2e7d0f084782e21b4fa6c4 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sun Sep 11 01:39:51 2016 +0300 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Sun Sep 11 01:39:51 2016 +0300 |
tree | 8e84798517fdbf7f9e77661469f05e08aa5aeaf0 | |
parent | 8b7aff8135d4ac5d8e4ecbfdd6be5e619aa8d546 [diff] [blame] |
Backported tests for issue #28070.
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index 588042a..5725a99 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py
@@ -928,6 +928,9 @@ 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('$')