[issue9607] Test file 'test_keyword.py' submission for use with keyword.py

Éric Araujo report at bugs.python.org
Mon Apr 22 17:21:48 CEST 2013


Éric Araujo added the comment:

Just wanted to note that addCleanup is smarter than many core devs think:

self.addCleanup(lambda: setattr(keyword, 'kwlist', oldlist))

self.addCleanup(setattr, keyword, 'kwlist', oldlist)

----------
nosy: +eric.araujo

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


More information about the Python-bugs-list mailing list