Commit 2df49204 authored by Michal Čihař's avatar Michal Čihař

Use six for http client

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent ff42db37
......@@ -25,8 +25,8 @@ import django
import os
import new
import json
import httplib
import base64
from six.moves.http_client import HTTPConnection
from django.test import LiveServerTestCase
from django.core.urlresolvers import reverse
from django.core import mail
......@@ -61,7 +61,7 @@ class SeleniumTests(LiveServerTestCase, RegistrationTestMixin):
def set_test_status(self, passed=True):
body_content = json.dumps({"passed": passed})
connection = httplib.HTTPConnection("saucelabs.com")
connection = HTTPConnection("saucelabs.com")
connection.request(
'PUT',
'/rest/v1/{}/jobs/{}'.format(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment