mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 7a6f5673ff5d146ca5c09c6a1b42b7706cfee328
This commit is contained in:
parent
e2fca1b228
commit
4787b28da3
261 changed files with 8195 additions and 4689 deletions
|
@ -13,7 +13,7 @@ import sys
|
|||
import threading
|
||||
import time
|
||||
import traceback
|
||||
import urllib2
|
||||
from six.moves import urllib
|
||||
import uuid
|
||||
from collections import defaultdict, OrderedDict
|
||||
from multiprocessing import Process, Event
|
||||
|
@ -444,10 +444,10 @@ def check_subdomains(config):
|
|||
connected = False
|
||||
for i in range(10):
|
||||
try:
|
||||
urllib2.urlopen("http://%s:%d/" % (host, port))
|
||||
urllib.request.urlopen("http://%s:%d/" % (host, port))
|
||||
connected = True
|
||||
break
|
||||
except urllib2.URLError:
|
||||
except urllib.error.URLError:
|
||||
time.sleep(1)
|
||||
|
||||
if not connected:
|
||||
|
@ -460,7 +460,7 @@ def check_subdomains(config):
|
|||
continue
|
||||
|
||||
try:
|
||||
urllib2.urlopen("http://%s:%d/" % (domain, port))
|
||||
urllib.request.urlopen("http://%s:%d/" % (domain, port))
|
||||
except Exception:
|
||||
logger.critical("Failed probing domain %s. "
|
||||
"You may need to edit /etc/hosts or similar, see README.md." % domain)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue