diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-01-02 21:53:44 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-01-02 21:53:44 (GMT) |
commit | b538d546da7a306300377bc3f38f659f0f7df832 (patch) | |
tree | 4be5973a9f37eb34959918ca07137ca6780d92f8 /Lib | |
parent | 83f86e8e98ff789f1c2832860ff78a59562db37d (diff) | |
download | cpython-b538d546da7a306300377bc3f38f659f0f7df832.zip cpython-b538d546da7a306300377bc3f38f659f0f7df832.tar.gz cpython-b538d546da7a306300377bc3f38f659f0f7df832.tar.bz2 |
Remove silly conditional.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/string_tests.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index 5d4f9eb..2e3a68d 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) |