diff options
author | Georg Brandl <georg@python.org> | 2013-10-13 07:32:59 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-10-13 07:32:59 (GMT) |
commit | daa1fa991cf11d67e559b837ab3b9d32514a3595 (patch) | |
tree | e8d62a30553142fd183cfea5f3cbf10c57707a67 /Lib/test/test_re.py | |
parent | a7bb9b3a13ae4696cb11fa2a6edef79cdba39fe0 (diff) | |
download | cpython-daa1fa991cf11d67e559b837ab3b9d32514a3595.zip cpython-daa1fa991cf11d67e559b837ab3b9d32514a3595.tar.gz cpython-daa1fa991cf11d67e559b837ab3b9d32514a3595.tar.bz2 |
Back out accidentally pushed changeset b51218966201.
Diffstat (limited to 'Lib/test/test_re.py')
-rw-r--r-- | Lib/test/test_re.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index ea57d1f..2104437 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -1061,30 +1061,6 @@ class ReTests(unittest.TestCase): self.assertEqual(m.group(1), "") self.assertEqual(m.group(2), "y") - def test_fullmatch(self): - # Issue 16203: Proposal: add re.fullmatch() method. - self.assertEqual(re.fullmatch(r"a", "a").span(), (0, 1)) - self.assertEqual(re.fullmatch(r"a|ab", "ab").span(), (0, 2)) - self.assertEqual(re.fullmatch(r".*?$", "abc").span(), (0, 3)) - self.assertEqual(re.fullmatch(r".*?", "abc").span(), (0, 3)) - self.assertEqual(re.fullmatch(r"a.*?b", "ab").span(), (0, 2)) - self.assertEqual(re.fullmatch(r"a.*?b", "abb").span(), (0, 3)) - self.assertEqual(re.fullmatch(r"a.*?b", "axxb").span(), (0, 4)) - self.assertEqual(re.fullmatch(r"abc$", "abc\n"), None) - self.assertEqual(re.fullmatch(r"abc\Z", "abc\n"), None) - self.assertEqual(re.fullmatch(r"(?m)abc$", "abc\n"), None) - self.assertEqual(re.fullmatch(r"ab(?=c)cd", "abcd").span(), (0, 4)) - self.assertEqual(re.fullmatch(r"ab(?<=b)cd", "abcd").span(), (0, 4)) - self.assertEqual(re.fullmatch(r"(?=a|ab)ab", "ab").span(), (0, 2)) - - self.assertEqual( - re.compile(r"bc").fullmatch("abcd", pos=1, endpos=3).span(), (1, 3)) - self.assertEqual( - re.compile(r".*?$").fullmatch("abcd", pos=1, endpos=3).span(), (1, 3)) - self.assertEqual( - re.compile(r".*?").fullmatch("abcd", pos=1, endpos=3).span(), (1, 3)) - - def run_re_tests(): from test.re_tests import tests, SUCCEED, FAIL, SYNTAX_ERROR if verbose: |