Bug 1371709 - Fix typo in module name, r=ato draft
authorJames Graham <james@hoppipolla.co.uk>
Fri, 09 Jun 2017 16:46:14 +0100
changeset 594752 a9adb30834023b6e724c8d13c18f64d360188e79
parent 594751 22d0d6e93cb923c3a9282311f5ce3ae7a06d4bf3
child 594753 917ed4872fed7a60935ba7343b98f39e0c2c811d
push id64122
push userbmo:james@hoppipolla.co.uk
push dateThu, 15 Jun 2017 12:20:31 +0000
reviewersato
bugs1371709
milestone56.0a1
Bug 1371709 - Fix typo in module name, r=ato MozReview-Commit-ID: DJFdq6eSd9T
testing/web-platform/tests/webdriver/support/fixtures.py
--- a/testing/web-platform/tests/webdriver/support/fixtures.py
+++ b/testing/web-platform/tests/webdriver/support/fixtures.py
@@ -121,17 +121,17 @@ def session(configuration, request):
     does not demand that we start a new session per test."""
     global _current_session
     if _current_session is None:
         _current_session = webdriver.Session(configuration["host"],
                                              configuration["port"],
                                              capabilities={"alwaysMatch": configuration["capabilities"]})
     try:
         _current_session.start()
-    except webdriver.errors.SessionNotCreatedException:
+    except webdriver.error.SessionNotCreatedException:
         if not _current_session.session_id:
             raise
 
     # finalisers are popped off a stack,
     # making their ordering reverse
     request.addfinalizer(lambda: _switch_to_top_level_browsing_context(_current_session))
     request.addfinalizer(lambda: _restore_windows(_current_session))
     request.addfinalizer(lambda: _dismiss_user_prompts(_current_session))