Merged revisions 77249 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77249 | antoine.pitrou | 2010-01-02 22:53:44 +0100 (sam., 02 janv. 2010) | 3 lines

  Remove silly conditional.
........
This commit is contained in:
Antoine Pitrou 2010-01-02 21:55:17 +00:00
parent 74edda01a1
commit 2e544fb198
1 changed files with 2 additions and 4 deletions

View File

@ -194,8 +194,7 @@ class BaseTest(unittest.TestCase):
loc = i.find(j) loc = i.find(j)
r1 = (loc != -1) r1 = (loc != -1)
r2 = j in i r2 = j in i
if r1 != r2: self.assertEqual(r1, r2)
self.assertEqual(r1, r2)
if loc != -1: if loc != -1:
self.assertEqual(i[loc:loc+len(j)], j) self.assertEqual(i[loc:loc+len(j)], j)
@ -238,8 +237,7 @@ class BaseTest(unittest.TestCase):
loc = i.rfind(j) loc = i.rfind(j)
r1 = (loc != -1) r1 = (loc != -1)
r2 = j in i r2 = j in i
if r1 != r2: self.assertEqual(r1, r2)
self.assertEqual(r1, r2)
if loc != -1: if loc != -1:
self.assertEqual(i[loc:loc+len(j)], j) self.assertEqual(i[loc:loc+len(j)], j)