Ensure feature tests are compatible with Python 3.5.

This is required even if they aren't run, as RPM builds will try to byte compile all files in the distro.
This commit is contained in:
Dave Page 2017-03-08 09:49:48 +00:00
parent da9aa3ccbd
commit 981ebfbcf7

View File

@ -55,10 +55,10 @@ class PgadminPage:
self.find_by_xpath("//*[@id='tree']//*[.='" + tree_item_text + "']/../*[@class='aciTreeButton']").click()
def find_by_xpath(self, xpath):
return self.wait_for_element(lambda (driver): driver.find_element_by_xpath(xpath))
return self.wait_for_element(lambda driver: driver.find_element_by_xpath(xpath))
def find_by_id(self, element_id):
return self.wait_for_element(lambda (driver): driver.find_element_by_id(element_id))
return self.wait_for_element(lambda driver: driver.find_element_by_id(element_id))
def find_by_partial_link_text(self, link_text):
return self._wait_for(