Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
103
Merge Requests
103
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
c354f620
Commit
c354f620
authored
Feb 07, 2020
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/seleniumserver/test: python3 compatibility
parent
57f128b5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
software/seleniumserver/test/test.py
software/seleniumserver/test/test.py
+4
-4
No files found.
software/seleniumserver/test/test.py
View file @
c354f620
...
@@ -31,7 +31,7 @@ import multiprocessing
...
@@ -31,7 +31,7 @@ import multiprocessing
import
os
import
os
import
tempfile
import
tempfile
import
unittest
import
unittest
import
urlparse
import
six.moves.urllib.parse
as
urlparse
import
base64
import
base64
import
hashlib
import
hashlib
import
contextlib
import
contextlib
...
@@ -76,7 +76,7 @@ class WebServerMixin(object):
...
@@ -76,7 +76,7 @@ class WebServerMixin(object):
self
.
send_response
(
200
)
self
.
send_response
(
200
)
self
.
end_headers
()
self
.
end_headers
()
self
.
wfile
.
write
(
self
.
wfile
.
write
(
'''
b
'''
<html>
<html>
<title>Test page</title>
<title>Test page</title>
<body>
<body>
...
@@ -102,7 +102,7 @@ class WebServerMixin(object):
...
@@ -102,7 +102,7 @@ class WebServerMixin(object):
if
form
.
has_key
(
'f'
):
if
form
.
has_key
(
'f'
):
file_data
=
form
[
'f'
].
file
.
read
()
file_data
=
form
[
'f'
].
file
.
read
()
self
.
wfile
.
write
(
self
.
wfile
.
write
(
'''
b
'''
<html>
<html>
<title>%s</title>
<title>%s</title>
<div>%s</div>
<div>%s</div>
...
@@ -385,7 +385,7 @@ class TestSSHServer(SeleniumServerTestCase):
...
@@ -385,7 +385,7 @@ class TestSSHServer(SeleniumServerTestCase):
received
+=
r
received
+=
r
if
'Selenium Server.'
in
received
:
if
'Selenium Server.'
in
received
:
break
break
self
.
assertIn
(
"Welcome to SlapOS Selenium Server."
,
received
)
self
.
assertIn
(
b
"Welcome to SlapOS Selenium Server."
,
received
)
class
TestFirefox52
(
BrowserCompatibilityMixin
,
SeleniumServerTestCase
):
class
TestFirefox52
(
BrowserCompatibilityMixin
,
SeleniumServerTestCase
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment