Update web-platform-tests to revision f26f3ca338953d0c2e8b62c97623f0f0eea430be

This commit is contained in:
WPT Sync Bot 2019-01-29 20:38:21 -05:00
parent 62ff032130
commit 3033b05605
32 changed files with 636 additions and 132 deletions

View file

@ -17,9 +17,9 @@ logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
def get_pr(repo, owner, sha):
def get_pr(owner, repo, sha):
url = ("https://api.github.com/search/issues?q=type:pr+is:merged+repo:%s/%s+sha:%s" %
(repo, owner, sha))
(owner, repo, sha))
try:
resp = urllib2.urlopen(url)
body = resp.read()
@ -51,11 +51,11 @@ def get_pr(repo, owner, sha):
return pr["number"]
def tag(repo, owner, sha, tag):
def tag(owner, repo, sha, tag):
data = json.dumps({"ref": "refs/tags/%s" % tag,
"sha": sha})
try:
url = "https://api.github.com/repos/%s/%s/git/refs" % (repo, owner)
url = "https://api.github.com/repos/%s/%s/git/refs" % (owner, repo)
req = urllib2.Request(url, data=data)
base64string = base64.b64encode(os.environ["GH_TOKEN"])

View file

@ -50,8 +50,8 @@ class Git(object):
return subprocess.check_output(full_cmd, cwd=repo_path, stderr=subprocess.STDOUT)
except Exception as e:
if platform.uname()[0] == "Windows" and isinstance(e, WindowsError):
full_cmd[0] = "git.bat"
return subprocess.check_output(full_cmd, cwd=repo_path, stderr=subprocess.STDOUT)
full_cmd[0] = "git.bat"
return subprocess.check_output(full_cmd, cwd=repo_path, stderr=subprocess.STDOUT)
else:
raise
return git

View file

@ -1,4 +1,4 @@
flake8==3.6.0
pycodestyle==2.4.0
pycodestyle==2.5.0
pyflakes==2.1.0
pep8-naming==0.7.0

View file

@ -374,9 +374,9 @@ def test_ssl_env_openssl():
def test_ssl_env_bogus():
with pytest.raises(ValueError):
with config.ConfigBuilder(ssl={"type": "foobar"}):
pass
with pytest.raises(ValueError):
with config.ConfigBuilder(ssl={"type": "foobar"}):
pass
def test_pickle():