mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
bitbake: lib: fix most undefined code picked up by pylint
Correctly import, and inherit functions, and variables. Also fix some typos and remove some Python 2 code that isn't recognised. (Bitbake rev: b0c807be5c2170c9481c1a04d4c11972135d7dc5) Signed-off-by: Frazer Clews <frazerleslieclews@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ac3593f6ed
commit
abc6f864b9
@@ -75,7 +75,7 @@ class SeleniumFunctionalTestCase(SeleniumTestCaseBase):
|
||||
try:
|
||||
table_element = self.get_table_element(table_id)
|
||||
element = table_element.find_element_by_link_text(link_text)
|
||||
except NoSuchElementException as e:
|
||||
except self.NoSuchElementException:
|
||||
print('no element found')
|
||||
raise
|
||||
return element
|
||||
@@ -86,7 +86,7 @@ class SeleniumFunctionalTestCase(SeleniumTestCaseBase):
|
||||
element_xpath = "//*[@id='" + table_id + "']"
|
||||
try:
|
||||
element = self.driver.find_element_by_xpath(element_xpath)
|
||||
except NoSuchElementException as e:
|
||||
except self.NoSuchElementException:
|
||||
raise
|
||||
return element
|
||||
row = coordinate[0]
|
||||
@@ -96,7 +96,7 @@ class SeleniumFunctionalTestCase(SeleniumTestCaseBase):
|
||||
element_xpath = "//*[@id='" + table_id + "']/tbody/tr[" + str(row) + "]"
|
||||
try:
|
||||
element = self.driver.find_element_by_xpath(element_xpath)
|
||||
except NoSuchElementException as e:
|
||||
except self.NoSuchElementException:
|
||||
return False
|
||||
return element
|
||||
#now we are looking for an element with specified X and Y
|
||||
@@ -105,6 +105,6 @@ class SeleniumFunctionalTestCase(SeleniumTestCaseBase):
|
||||
element_xpath = "//*[@id='" + table_id + "']/tbody/tr[" + str(row) + "]/td[" + str(column) + "]"
|
||||
try:
|
||||
element = self.driver.find_element_by_xpath(element_xpath)
|
||||
except NoSuchElementException as e:
|
||||
except self.NoSuchElementException:
|
||||
return False
|
||||
return element
|
||||
|
||||
Reference in New Issue
Block a user