js/src/gdb/mozilla/ExecutableAllocator.py does not work with python 2
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: tromey, Assigned: tromey)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0
Steps to reproduce:
Ran the js/src/gdb tests with Python 2.
Actual results:
Traceback (most recent call last):
File "/home/tromey/firefox-git/hg2/js/src/gdb/mozilla/ExecutableAllocator.py", line 41, in to_string
return "ExecutableAllocator([%s])" % ', '.join([str(x) for x in self])
TypeError: iter() returned non-iterator of type 'PoolIterator'
Assertion traceback for ExecutableAllocator.empty:
File "/home/tromey/firefox-git/hg2/js/src/gdb/lib-for-tests/prologue.py", line 108, in <module>
execfile(testscript, globals(), locals())
File "<string>", line 21, in execfile
File "/home/tromey/firefox-git/hg2/js/src/gdb/tests/test-ExecutableAllocator.py", line 10, in <module>
assert_pretty('execAlloc', 'ExecutableAllocator([])')
File "/home/tromey/firefox-git/hg2/js/src/gdb/lib-for-tests/prologue.py", line 56, in assert_pretty
assert_eq(str(value), form)
File "/home/tromey/firefox-git/hg2/js/src/gdb/lib-for-tests/prologue.py", line 38, in assert_eq
actual: %r""" % (expected, actual))
Expected results:
Test should have passed.
Assignee | ||
Comment 1•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 3•6 years ago
|
||
bugherder |
Description
•