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
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
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9815
___
___
Python-bugs-list
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
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
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
___
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
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
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. :-)
--
___
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
10 matches
Mail list logo