Bug 1627632 [wpt PR 22714] - Python 3: Improve webdriver tests compatibility with...
commitb93fb07fb71ae63ccf1e1b710c2f62703d71d711
authorziransun <zsun@igalia.com>
Tue, 14 Apr 2020 11:20:31 +0000 (14 11:20 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 16 Apr 2020 09:58:35 +0000 (16 09:58 +0000)
tree043eaee832a3a67b50cf9dd57ff5878a4f299bcf
parentb3882d56d6c7712086b6e15118607f5f7f89abcd
Bug 1627632 [wpt PR 22714] - Python 3: Improve webdriver tests compatibility with Python 3, a=testonly

Automatic update from web-platform-tests
Python 3: Improve webdriver tests compatibility with Python 3 (#22714)

- Change urlparse, httplib imports to work with both 2.x and 3.x.
- Replace uses of basestring with six library calls.
- Ensure parameter for base64.decodestring() is a byte-like object.
- Convert map to list. In Python 3, map returns an iterator.
- Use six.integer_types for Possible integer types. In Python 2,
  this is long and int, and in Python 3, just int. PEP 237 specifies
  unifying Long Integers and Integers. Essentially, there is only
  one built-in integral type. In Python 3, all integers are implemented
  as “long” integer objects of arbitrary size.
- Use explicit relative imports.
--

wpt-commits: f2e918abb4b8711afb28c8b98d98be3bffc9fa9a
wpt-pr: 22714
20 files changed:
testing/web-platform/tests/webdriver/tests/add_cookie/add.py
testing/web-platform/tests/webdriver/tests/execute_async_script/collections.py
testing/web-platform/tests/webdriver/tests/execute_script/collections.py
testing/web-platform/tests/webdriver/tests/get_alert_text/get.py
testing/web-platform/tests/webdriver/tests/get_current_url/get.py
testing/web-platform/tests/webdriver/tests/get_named_cookie/get.py
testing/web-platform/tests/webdriver/tests/new_session/create_alwaysMatch.py
testing/web-platform/tests/webdriver/tests/new_session/create_firstMatch.py
testing/web-platform/tests/webdriver/tests/new_session/invalid_capabilities.py
testing/web-platform/tests/webdriver/tests/new_session/response.py
testing/web-platform/tests/webdriver/tests/perform_actions/support/keys.py
testing/web-platform/tests/webdriver/tests/status/status.py
testing/web-platform/tests/webdriver/tests/support/asserts.py
testing/web-platform/tests/webdriver/tests/support/authentication.py
testing/web-platform/tests/webdriver/tests/support/fixtures.py
testing/web-platform/tests/webdriver/tests/support/http_request.py
testing/web-platform/tests/webdriver/tests/support/image.py
testing/web-platform/tests/webdriver/tests/support/inline.py
testing/web-platform/tests/webdriver/tests/switch_to_frame/cross_origin.py
testing/web-platform/tests/webdriver/tests/switch_to_frame/switch.py