[Python-checkins] r77249 - python/trunk/Lib/test/string_tests.py
antoine.pitrou
python-checkins at python.org
Sat Jan 2 22:53:45 CET 2010
Author: antoine.pitrou
Date: Sat Jan 2 22:53:44 2010
New Revision: 77249
Log:
Remove silly conditional.
Modified:
python/trunk/Lib/test/string_tests.py
Modified: python/trunk/Lib/test/string_tests.py
==============================================================================
--- python/trunk/Lib/test/string_tests.py (original)
+++ python/trunk/Lib/test/string_tests.py Sat Jan 2 22:53:44 2010
@@ -208,8 +208,7 @@
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 @@
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)
More information about the Python-checkins
mailing list