You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Internal unit tests are not python2.6 compatible #13
If you run robotframework-selenium2library's internal unit tests using Python 2.6 several tests fail due to apparent difference in the assertRaises function between 2.6 and 2.7. Here is a sample test code.
Activity
emanlove commentedon Dec 5, 2011
I have simple, clean fixes for some of the assertRaises calls. For example, within /test/unit/locators/test_elementfinder.py
def test_find_with_null_browser(self): finder = ElementFinder() - with self.assertRaises(AssertionError): - finder.find(None, "id=test1") + self.assertRaises(AssertionError, + finder.find, None, "id=test1")but for the code with the "with self.assertRaises(ValueError) as context:" structure, like
also within /test/unit/locators/test_elementfinder.py, I don't yet have a clean 2.6 and 2.7 code; so any suggestions are welcome.