mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision 36634cbcf3253dfe8d220990a27ad4eeebf8ec2f
This commit is contained in:
parent
0964d055cd
commit
7295abcc2a
245 changed files with 5966 additions and 1901 deletions
|
@ -3,7 +3,7 @@ import os
|
|||
import subprocess
|
||||
import time
|
||||
import sys
|
||||
import urllib2
|
||||
from six.moves import urllib
|
||||
|
||||
|
||||
class WPTServer(object):
|
||||
|
@ -38,9 +38,9 @@ class WPTServer(object):
|
|||
logging.warn('Command "%s" exited with %s', ' '.join(wptserve_cmd), exit_code)
|
||||
break
|
||||
try:
|
||||
urllib2.urlopen(self.base_url, timeout=1)
|
||||
urllib.request.urlopen(self.base_url, timeout=1)
|
||||
return
|
||||
except urllib2.URLError:
|
||||
except urllib.error.URLError:
|
||||
pass
|
||||
|
||||
raise Exception('Could not start wptserve on %s' % self.base_url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue