Message224917
Thanks for the patch, however I don't think this is a robust solution.
Other objects might have undeletable attributes too.
The current code can delete an attribute without restoring it so an easy solution would be removing the hasattr() check, but that seems to be there to deal with proxy objects, so doing that will probably break them (Lib/unittest/test/testmock/testpatch.py:821 seems to test proxy object). |
|
Date |
User |
Action |
Args |
2014-08-06 09:18:51 | ezio.melotti | set | recipients:
+ ezio.melotti, michael.foord, chepner, seanmccully |
2014-08-06 09:18:50 | ezio.melotti | set | messageid: <1407316730.96.0.0731095073986.issue22138@psf.upfronthosting.co.za> |
2014-08-06 09:18:50 | ezio.melotti | link | issue22138 messages |
2014-08-06 09:18:50 | ezio.melotti | create | |
|