Commit c354f620 authored by Jérome Perrin's avatar Jérome Perrin

software/seleniumserver/test: python3 compatibility

parent 57f128b5
......@@ -31,7 +31,7 @@ import multiprocessing
import os
import tempfile
import unittest
import urlparse
import six.moves.urllib.parse as urlparse
import base64
import hashlib
import contextlib
......@@ -76,7 +76,7 @@ class WebServerMixin(object):
self.send_response(200)
self.end_headers()
self.wfile.write(
'''
b'''
<html>
<title>Test page</title>
<body>
......@@ -102,7 +102,7 @@ class WebServerMixin(object):
if form.has_key('f'):
file_data = form['f'].file.read()
self.wfile.write(
'''
b'''
<html>
<title>%s</title>
<div>%s</div>
......@@ -385,7 +385,7 @@ class TestSSHServer(SeleniumServerTestCase):
received += r
if 'Selenium Server.' in received:
break
self.assertIn("Welcome to SlapOS Selenium Server.", received)
self.assertIn(b"Welcome to SlapOS Selenium Server.", received)
class TestFirefox52(BrowserCompatibilityMixin, SeleniumServerTestCase):
......
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