[issue11664] Add patch method to unittest.TestCase

Michael Foord report at bugs.python.org
Sat Mar 26 20:02:55 CET 2011


Michael Foord <michael at voidspace.org.uk> added the comment:

I'd like to ponder this a bit. Note that the patch is incorrect - fetching the attribute should not be done with getattr (this will trigger descriptors instead of fetching the underlying member) and should not be reset unconditionally (if the original was fetched from a base class the just deleting the patched member will restore the original). 

If we decide to do this I can provide a patch.

----------

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


More information about the Python-bugs-list mailing list