diff options
author | Georg Brandl <georg@python.org> | 2008-08-24 18:11:07 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-08-24 18:11:07 +0000 |
commit | 30de77b97da2f72888ac0e91dfda52caf5b98212 (patch) | |
tree | 60b0b68873fbc1c60c3fc0e12d311b0880c8c5f7 /Lib/test/test_re.py | |
parent | 712ee923092ef1b47c72914c5e2950be2f05f527 (diff) | |
download | cpython-git-30de77b97da2f72888ac0e91dfda52caf5b98212.tar.gz |
#3654: fix duplicate test method name. Review by Benjamin P.
Diffstat (limited to 'Lib/test/test_re.py')
-rw-r--r-- | Lib/test/test_re.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index a2470cd6f2..1da3205e72 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -370,10 +370,6 @@ class ReTests(unittest.TestCase): self.assertEqual(re.search(r"\d\D\w\W\s\S", "1aa! a", re.UNICODE).group(0), "1aa! a") - def test_ignore_case(self): - self.assertEqual(re.match("abc", "ABC", re.I).group(0), "ABC") - self.assertEqual(re.match("abc", u"ABC", re.I).group(0), "ABC") - def test_bigcharset(self): self.assertEqual(re.match(u"([\u2222\u2223])", u"\u2222").group(1), u"\u2222") @@ -401,6 +397,8 @@ class ReTests(unittest.TestCase): self.assertEqual(re.match(r"(a)(?!\s(abc|a))", "a b").group(1), "a") def test_ignore_case(self): + self.assertEqual(re.match("abc", "ABC", re.I).group(0), "ABC") + self.assertEqual(re.match("abc", u"ABC", re.I).group(0), "ABC") self.assertEqual(re.match(r"(a\s[^a])", "a b", re.I).group(1), "a b") self.assertEqual(re.match(r"(a\s[^a]*)", "a bb", re.I).group(1), "a bb") self.assertEqual(re.match(r"(a\s[abc])", "a b", re.I).group(1), "a b") |