]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#3654: fix duplicate test method name. Review by Benjamin P.
authorGeorg Brandl <georg@python.org>
Sun, 24 Aug 2008 18:11:07 +0000 (18:11 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 24 Aug 2008 18:11:07 +0000 (18:11 +0000)
Lib/test/test_re.py

index a2470cd6f27a78d949d8c2a7a120d8ec2cb84277..1da3205e7293e4bcd861bae82e7d2d7b6be21255 100644 (file)
@@ -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")