mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Use "x in y" instead of y.find(x) != -1.
This commit is contained in:
parent
d80b4bfd0b
commit
187f93d986
4 changed files with 4 additions and 4 deletions
|
@ -433,7 +433,7 @@ class MinidomTest(unittest.TestCase):
|
|||
string1 = repr(el)
|
||||
string2 = str(el)
|
||||
self.confirm(string1 == string2)
|
||||
self.confirm(string1.find("slash:abc") != -1)
|
||||
self.confirm("slash:abc" in string1)
|
||||
dom.unlink()
|
||||
|
||||
def testAttributeRepr(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue