convertAcceptanceToJunit.py uses syntax incompatible with python3

RESOLVED FIXED

Status

RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: dschaffe, Assigned: dschaffe)

Tracking

Details

Attachments

(1 attachment)

(Assignee)

Description

7 years ago
Script test/util/convertAcceptanceToJunit.py uses incompatible syntax with python3.

The statement:
str=re.sub(b'[\x00-\x08\x0B-\x0C\x0E-\x1F\x7F]','',str)

causes an error in python3.
(Assignee)

Comment 1

7 years ago
Created attachment 608811 [details] [diff] [review]
pach

I believe just removed the b'' making it a string instead of a byte data structure will fix the problem.  I ran the Unicode tests with verbose and used firefox to verify the xml file is ok.
Assignee: nobody → dschaffe
Status: NEW → ASSIGNED
Attachment #608811 - Flags: review?(brbaker)

Updated

7 years ago
Attachment #608811 - Flags: review?(brbaker) → review+
(Assignee)

Comment 2

7 years ago
changelist:  1047399
user:        Dan Schaffer <Dan.Schaffer@adobe.com>
date:        Mon Mar 26 12:40:47 2012 +0000
summary:     bug 738734: fix for convertAcceptanceToJunit.py python3 incompatibility (pending r=brbaker)
(Assignee)

Updated

7 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED

Comment 3

7 years ago
changeset: 7323:a1ee3e1f4e17
user:      Dan Schaffer <Dan.Schaffer@adobe.com>
summary:   bug 738734: fix for convertAcceptanceToJunit.py python3 incompatibility (pending r=brbaker)

http://hg.mozilla.org/tamarin-redux/rev/a1ee3e1f4e17
You need to log in before you can comment on or make changes to this bug.