From b538d546da7a306300377bc3f38f659f0f7df832 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sat, 2 Jan 2010 21:53:44 +0000 Subject: [PATCH] Remove silly conditional. --- Lib/test/string_tests.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index 5d4f9eb6aa..2e3a68d668 100644 --- a/Lib/test/string_tests.py +++ b/Lib/test/string_tests.py @@ -208,8 +208,7 @@ class CommonTest(unittest.TestCase): loc = i.find(j) r1 = (loc != -1) r2 = j in i - if r1 != r2: - self.assertEqual(r1, r2) + self.assertEqual(r1, r2) if loc != -1: self.assertEqual(i[loc:loc+len(j)], j) @@ -253,8 +252,7 @@ class CommonTest(unittest.TestCase): loc = i.rfind(j) r1 = (loc != -1) r2 = j in i - if r1 != r2: - self.assertEqual(r1, r2) + self.assertEqual(r1, r2) if loc != -1: self.assertEqual(i[loc:loc+len(j)], j) -- 2.50.1