Message263361
When patching a class, mock.create_autospec() correctly detects properties and __slot__ attributes, but not subclasses of property() or other kinds of data descriptors.
The attached patch detects all data descriptors and patch them the way they should be. |
|
Date |
User |
Action |
Args |
2016-04-13 22:13:06 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, michael.foord |
2016-04-13 22:13:06 | amaury.forgeotdarc | set | messageid: <1460585586.67.0.646853664072.issue26750@psf.upfronthosting.co.za> |
2016-04-13 22:13:06 | amaury.forgeotdarc | link | issue26750 messages |
2016-04-13 22:13:06 | amaury.forgeotdarc | create | |
|