This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_gdb in Python3: No stack
Type: Stage:
Components: Versions: Python 3.2
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Port of the gdb7 debugging hooks to the "py3k" branch
View: 8380
Assigned To: dmalcolm Nosy List: dmalcolm, loewis, vstinner
Priority: normal Keywords:

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:00adminsetgithub: 52725
2010-04-21 15:23:31dmalcolmsetstatus: open -> closed
resolution: duplicate
2010-04-21 15:23:09dmalcolmsetsuperseder: Port of the gdb7 debugging hooks to the "py3k" branch
messages: + msg103852
2010-04-21 14:00:41vstinnersetmessages: + msg103846
title: test_gdb: No stack -> test_gdb in Python3: No stack
2010-04-21 12:25:34vstinnersetnosy: + vstinner
messages: + msg103831
2010-04-21 06:17:20loewissetassignee: dmalcolm

nosy: + dmalcolm
2010-04-21 06:17:04loewiscreate