summaryrefslogtreecommitdiff
path: root/Lib/test/test_re.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-08-24 18:11:07 +0000
committerGeorg Brandl <georg@python.org>2008-08-24 18:11:07 +0000
commit30de77b97da2f72888ac0e91dfda52caf5b98212 (patch)
tree60b0b68873fbc1c60c3fc0e12d311b0880c8c5f7 /Lib/test/test_re.py
parent712ee923092ef1b47c72914c5e2950be2f05f527 (diff)
downloadcpython-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.py6
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")