[issue8479] test_gdb in Python3: No stack

STINNER Victor report at bugs.python.org
Wed Apr 21 16:00:42 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

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");.

----------
title: test_gdb: No stack -> test_gdb in Python3: No stack

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8479>
_______________________________________


More information about the Python-bugs-list mailing list