Issue 8479: test_gdb in Python3: No stack (original) (raw)

Issue8479

Created on 2010-04-21 06:17 by loewis, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_gdb.txt loewis,2010-04-21 06:16
Messages (4)
msg103802 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2010-04-21 06:16
test_gdb currently fails on 3k; some tests with a "No stack" message. I'll attach the full output, but would like this issue to focus on the "No stack" failures.
msg103831 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-04-21 12:25
I may be related to #8482 (compiler optimization level?).
msg103846 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-04-21 14:00
The problem is that test_gdb is not compatible with Python3. test_gdb uses "print x" syntax instead of "print(x)", and "except XXX, xxx:" instead of "except XXX as xxx:". Note: "print range(1000)" => "print(list(range(1000)))". DebuggerOutput.run_gdb() should also convert the output to unicode, maybe using out = out.decode("ascii"); err = err.decode("ascii");.
msg103852 - (view) Author: Dave Malcolm (dmalcolm) (Python committer) Date: 2010-04-21 15:23
Issue 8380 contains a port of the code and tests to python 3; it's awaiting review.
History
Date User Action Args
2022-04-11 14:57:00 admin set github: 52725
2010-04-21 15:23:31 dmalcolm set status: open -> closedresolution: duplicate
2010-04-21 15:23:09 dmalcolm set superseder: Port of the gdb7 debugging hooks to the "py3k" branchmessages: +
2010-04-21 14:00:41 vstinner set messages: + title: test_gdb: No stack -> test_gdb in Python3: No stack
2010-04-21 12:25:34 vstinner set nosy: + vstinnermessages: +
2010-04-21 06:17:20 loewis set assignee: dmalcolmnosy: + dmalcolm
2010-04-21 06:17:04 loewis create