Bug 1609171 [wpt PR 21168] - Python 3: Fix some old-style/urlparse imports., a=testonly

Automatic update from web-platform-tests
Python 3: Fix some old-style/urlparse imports.

--

wpt-commits: f104e7c3feb0cea1febbe715f57614f204e235aa
wpt-pr: 21168
This commit is contained in:
Ms2ger 2020-01-15 11:49:28 +00:00 коммит произвёл moz-wptsync-bot
Родитель cfd02b3fe2
Коммит 5e7de6d4d4
4 изменённых файлов: 9 добавлений и 9 удалений

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

@ -6,14 +6,14 @@ import stat
import errno
import subprocess
import tempfile
import urlparse
from abc import ABCMeta, abstractmethod
from datetime import datetime, timedelta
from distutils.spawn import find_executable
from six.moves.urllib.parse import urlsplit
import requests
from utils import call, get, untar, unzip
from .utils import call, get, untar, unzip
uname = platform.uname()
@ -172,7 +172,7 @@ class Firefox(Browser):
filename = filenames[0]
if not filename:
filename = urlparse.urlsplit(resp.url).path.rsplit("/", 1)[1]
filename = urlsplit(resp.url).path.rsplit("/", 1)[1]
if not filename:
filename = "firefox.tar.bz2"

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

@ -1,6 +1,6 @@
import argparse
import browser
import sys
from . import browser
latest_channels = {

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

@ -3,9 +3,10 @@ import os
import threading
import time
import traceback
import urlparse
import uuid
from six.moves.urllib.parse import urljoin
errors = None
marionette = None
pytestrunner = None
@ -132,8 +133,7 @@ class MarionetteTestharnessProtocolPart(TestharnessProtocolPart):
# Check if we previously had a test window open, and if we did make sure it's closed
if self.runner_handle:
self._close_windows()
url = urlparse.urljoin(self.parent.executor.server_url(url_protocol),
"/testharness_runner.html")
url = urljoin(self.parent.executor.server_url(url_protocol), "/testharness_runner.html")
self.logger.debug("Loading %s" % url)
try:
self.dismiss_alert(lambda: self.marionette.navigate(url))
@ -893,7 +893,7 @@ class InternalRefTestImplementation(RefTestImplementation):
def setup(self, screenshot="unexpected"):
data = {"screenshot": screenshot}
if self.executor.group_metadata is not None:
data["urlCount"] = {urlparse.urljoin(self.executor.server_url(key[0]), key[1]):value
data["urlCount"] = {urljoin(self.executor.server_url(key[0]), key[1]):value
for key, value in self.executor.group_metadata.get("url_count", {}).iteritems()
if value > 1}
self.executor.protocol.marionette.set_context(self.executor.protocol.marionette.CONTEXT_CHROME)

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

@ -93,7 +93,7 @@ class RunInfo(dict):
self._update_mozinfo(metadata_root)
self.update(mozinfo.info)
from update.tree import GitTree
from .update.tree import GitTree
try:
# GitTree.__init__ throws if we are not in a git tree.
rev = GitTree(log_error=False).rev