[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 _

[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 b

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

2014-03-06 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[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 _

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

2013-10-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[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 ___ __

[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 : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2010-09-25 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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. :-) -- ___ Python tracker

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

2010-09-24 Thread Antoine Pitrou
Antoine Pitrou 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 not. As the tes