Skip to content

Commit 50eae54

Browse files
author
georg.brandl
committed
#3654: fix duplicate test method name. Review by Benjamin P.
git-svn-id: http://svn.python.org/projects/python/trunk@66014 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent ee51da9 commit 50eae54

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: Lib/test/test_re.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,6 @@ def test_special_escapes(self):
370370
self.assertEqual(re.search(r"\d\D\w\W\s\S",
371371
"1aa! a", re.UNICODE).group(0), "1aa! a")
372372

373-
def test_ignore_case(self):
374-
self.assertEqual(re.match("abc", "ABC", re.I).group(0), "ABC")
375-
self.assertEqual(re.match("abc", u"ABC", re.I).group(0), "ABC")
376-
377373
def test_bigcharset(self):
378374
self.assertEqual(re.match(u"([\u2222\u2223])",
379375
u"\u2222").group(1), u"\u2222")
@@ -401,6 +397,8 @@ def test_non_consuming(self):
401397
self.assertEqual(re.match(r"(a)(?!\s(abc|a))", "a b").group(1), "a")
402398

403399
def test_ignore_case(self):
400+
self.assertEqual(re.match("abc", "ABC", re.I).group(0), "ABC")
401+
self.assertEqual(re.match("abc", u"ABC", re.I).group(0), "ABC")
404402
self.assertEqual(re.match(r"(a\s[^a])", "a b", re.I).group(1), "a b")
405403
self.assertEqual(re.match(r"(a\s[^a]*)", "a bb", re.I).group(1), "a bb")
406404
self.assertEqual(re.match(r"(a\s[abc])", "a b", re.I).group(1), "a b")

0 commit comments

Comments
 (0)