Fix python3 compatible use six

Change-Id: I0b27beefb3099f1a5a59d89ec90229a94259ebb2
This commit is contained in:
zhurong 2018-10-23 18:49:26 +08:00
parent 74c3a3e4b9
commit 18b276ecdf
1 changed files with 4 additions and 3 deletions

View File

@ -10,18 +10,19 @@
# License for the specific language governing permissions and limitations
# under the License.
from http.server import BaseHTTPRequestHandler
import multiprocessing
import os
import re
import shutil
import socketserver
import tempfile
import time
import unittest
import uuid
import zipfile
from six.moves import SimpleHTTPServer
from six.moves import socketserver
from selenium.common import exceptions
from selenium.webdriver.common import by
from selenium.webdriver.common.keys import Keys
@ -2765,7 +2766,7 @@ class TestSuiteRepository(base.PackageTestCase):
self.serve_dir = tempfile.mkdtemp(suffix="repo")
def serve_function():
class Handler(BaseHTTPRequestHandler):
class Handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
pass
os.chdir(self.serve_dir)
httpd = socketserver.TCPServer(