Closed
Bug 1793668
Opened 3 years ago
Closed 1 years ago
test262-update.py script --local argument doesn't work in python 3
Categories
(Core :: JavaScript Engine, task, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
127 Branch
Tracking | Status | |
---|---|---|
firefox127 | --- | fixed |
People
(Reporter: tjc, Assigned: Ms2ger)
References
(Blocks 3 open bugs)
Details
Attachments
(2 files)
Running this command:
python3 test262-update.py --local=$HOME/test262 --branch=change-array-by-copy
I got the error:
Traceback (most recent call last):
File "/home/tjc/gecko-fork/js/src/tests/test262-update.py", line 900, in <module>
args.func(args)
File "/home/tjc/gecko-fork/js/src/tests/test262-update.py", line 837, in update_test262
return fetch_local_changes(inDir, outDir, srcDir, strictTests)
File "/home/tjc/gecko-fork/js/src/tests/test262-update.py", line 585, in fetch_local_changes
).split("\n")[0]
TypeError: a bytes-like object is required, not 'str'
The script worked when I replaced python3
with python2
. If the intention is that this script requires python2, that should be documented.
$ python3 --version
Python 3.10.6
$ python2 --version
Python 2.7.18
Updated•3 years ago
|
Updated•2 years ago
|
Blocks: goodbye-py2
Assignee | ||
Comment 1•2 years ago
|
||
It seems like it's the --local
flag in particular that's causing trouble. This also breaks the integration test in js/src/tests/test/run.py
; I'm disabling the test in bug 1891746 with a pointer here.
Summary: test262-update.py script requires Python 2 → test262-update.py script --local argument doesn't work in python 3
Assignee | ||
Updated•1 years ago
|
Assignee: nobody → Ms2ger
Updated•1 years ago
|
Blocks: sm-testing
Assignee | ||
Comment 2•1 years ago
|
||
Assignee | ||
Comment 3•1 years ago
|
||
Pushed by Ms2ger@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/56d2d09c8d54
fix test262-update.py --local in python 3; r=spidermonkey-reviewers,dminor
https://hg.mozilla.org/integration/autoland/rev/c8793cd3262e
Update test for test262-import.py; r=dminor
Comment 5•1 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/56d2d09c8d54
https://hg.mozilla.org/mozilla-central/rev/c8793cd3262e
Status: NEW → RESOLVED
Closed: 1 years ago
status-firefox127:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
Updated•1 years ago
|
Type: enhancement → task
You need to log in
before you can comment on or make changes to this bug.
Description
•