[issue9815] assertRaises as a context manager keeps tracebacks and frames alive

2014-04-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6ab3193e890e by Antoine Pitrou in branch '3.4': Issue #9815: assertRaises now tries to clear references to local variables in the exception's traceback. http://hg.python.org/cpython/rev/6ab3193e890e New changeset 553fe27521be by Antoine Pitrou in

[issue9815] assertRaises as a context manager keeps tracebacks and frames alive

2014-04-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed an alternate patch using traceback.clear_frames(). -- resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9815

[issue9815] assertRaises as a context manager keeps tracebacks and frames alive

2014-03-06 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9815 ___ ___ Python-bugs-list

[issue9815] assertRaises as a context manager keeps tracebacks and frames alive

2013-10-06 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9815 ___ ___ Python-bugs-list

[issue9815] assertRaises as a context manager keeps tracebacks and frames alive

2013-10-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: See issue1565525 for the new helper function in the traceback module. -- nosy: +akuchling stage: patch review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9815

[issue9815] assertRaises as a context manager keeps tracebacks and frames alive

2013-08-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: frame.clear() was committed in issue17934, it would allow a less brutal resolution. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9815 ___

[issue9815] assertRaises as a context manager keeps tracebacks and frames alive

2013-02-10 Thread Michael Foord
Michael Foord added the comment: The patch py3k_fix__AssertRaisesContext.patch looks good. A test would be nice. The code already attempts to sanitize the traceback, so sanitizing __cause__ and __context__ seems reasonable. -- versions: +Python 3.3, Python 3.4

[issue9815] assertRaises as a context manager keeps tracebacks and frames alive

2011-04-04 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9815 ___ ___ Python-bugs-list

[issue9815] assertRaises as a context manager keeps tracebacks and frames alive

2010-09-25 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Note that the original issue (test_tarfile failures on the Windows buildbots) now seems fixed thanks to the various tarfile and test_tarfile improvements. Yes, thanks. :-) -- ___

[issue9815] assertRaises as a context manager keeps tracebacks and frames alive

2010-09-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Note that the original issue (test_tarfile failures on the Windows buildbots) now seems fixed thanks to the various tarfile and test_tarfile improvements. I have no opinion on whether assertRaises should take care of cleaning the tracebacks or