Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
76801d86
Commit
76801d86
authored
Aug 30, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use UTF-8 and unicode to replace latin1 chars.
parent
8304e68e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
+3
-2
No files found.
product/ERP5Type/tests/ERP5TypeFunctionalTestCase.py
View file @
76801d86
...
@@ -305,9 +305,10 @@ class FunctionalTestRunner:
...
@@ -305,9 +305,10 @@ class FunctionalTestRunner:
<body>%s</body>
<body>%s</body>
</html>''' % detail
</html>''' % detail
return detail.decode('ascii', "replace"), int(sucess_amount),
\
# When return fix output for handle unicode issues.
return unicode(detail, "utf-8", "replace"), int(sucess_amount),
\
int(failure_amount),
\
int(failure_amount),
\
[
i.decode('ascii'
, "replace") for i in error_title_list]
[
unicode(i, "utf-8"
, "replace") for i in error_title_list]
class ERP5TypeFunctionalTestCase(ERP5TypeTestCase):
class ERP5TypeFunctionalTestCase(ERP5TypeTestCase):
run_only = ""
run_only = ""
...
...
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