Bug 1695263 - Import marionette from driver not harness, r=marionette-reviewers,whimboo

This avoids a lot of unnecessary extra work and dependencies.

Differential Revision: https://phabricator.services.mozilla.com/D106760
This commit is contained in:
James Graham 2021-03-03 10:03:03 +00:00
Родитель 4866ef27a8
Коммит b9682a9785
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -46,7 +46,7 @@ from six.moves import range
try:
from marionette_driver.addons import Addons
from marionette_harness import Marionette
from marionette_driver.marionette import Marionette
except ImportError as e: # noqa
# Defer ImportError until attempt to use Marionette.
# Python 3 deletes the exception once the except block

Просмотреть файл

@ -59,7 +59,7 @@ from mozgeckoprofiler import symbolicate_profile_json, view_gecko_profile
try:
from marionette_driver.addons import Addons
from marionette_harness import Marionette
from marionette_driver.marionette import Marionette
except ImportError as e: # noqa
# Defer ImportError until attempt to use Marionette
def reraise(*args, **kwargs):