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

Zelenium: py3

parent f49d7c83
...@@ -9,7 +9,7 @@ import glob ...@@ -9,7 +9,7 @@ import glob
import logging import logging
import os import os
import re import re
from six.moves.urllib.parse import unquote from six.moves.urllib.parse import unquote_to_bytes
import zipfile import zipfile
import io import io
import types import types
...@@ -37,7 +37,7 @@ logger = logging.getLogger('event.Zelenium') ...@@ -37,7 +37,7 @@ logger = logging.getLogger('event.Zelenium')
_NOW = None # set only for testing _NOW = None # set only for testing
_PINK_BACKGROUND = re.compile('bgcolor="#ffcfcf"') _PINK_BACKGROUND = re.compile(b'bgcolor="#ffcfcf"')
_EXCLUDE_NAMES = ( 'CVS', '.svn', '.objects' ) _EXCLUDE_NAMES = ( 'CVS', '.svn', '.objects' )
...@@ -380,7 +380,7 @@ class Zuite( OrderedFolder ): ...@@ -380,7 +380,7 @@ class Zuite( OrderedFolder ):
result._setObject( 'suite.html' result._setObject( 'suite.html'
, File( 'suite.html' , File( 'suite.html'
, 'Test Suite' , 'Test Suite'
, unquote( rfg( 'suite' ) ) , unquote_to_bytes( rfg( 'suite' ) )
, 'text/html' , 'text/html'
) )
) )
...@@ -390,7 +390,7 @@ class Zuite( OrderedFolder ): ...@@ -390,7 +390,7 @@ class Zuite( OrderedFolder ):
test_ids.sort() test_ids.sort()
for test_id in test_ids: for test_id in test_ids:
body = unquote( rfg( test_id ) ) body = unquote_to_bytes( rfg( test_id ) )
result._setObject( test_id result._setObject( test_id
, File( test_id , File( test_id
, 'Test case: %s' % test_id , 'Test case: %s' % test_id
......
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