[issue7808] test_bsddb3 leaks references
Jesús Cea Avión
report at bugs.python.org
Tue Mar 16 13:55:37 CET 2010
Jesús Cea Avión <jcea at jcea.es> added the comment:
I have problem getting your changes working in python 3.x. Yes, pybsddb supports py3k.
The problem is line "sys.exc_traceback = sys.last_traceback = None", that throws the following error under python 3.x:
"""
File "/home/pybsddb/build/lib.solaris-2.10-i86pc-3.1/bsddb3/tests/test_compare.py", line 215, in verifyStderr
sys.exc_info()[2] = sys.last_traceback = None
TypeError: 'tuple' object does not support item assignment
"""
The line is automatically translated by "2to3".
Any suggestion?.
I guess in 3.x we can change the line to "sys.exc_clear()", and forget about the "None" asignment. What do you think?.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7808>
_______________________________________
More information about the Python-bugs-list
mailing list