Message308188
mock.patch.dict.__enter__ should return the patched dict/mapping object.
Currently it returns nothing (None).
This would make setting up fixtures more convenient:
with mock.patch.dict(some.thing):
some.thing['foo'] = 'bar'
with mock.patch.dict(some.thing) as x:
x['foo'] = 'bar' |
|
| Date |
User |
Action |
Args |
| 2017-12-13 07:08:20 | Allen Li | set | recipients:
+ Allen Li |
| 2017-12-13 07:08:20 | Allen Li | set | messageid: <1513148900.41.0.213398074469.issue32299@psf.upfronthosting.co.za> |
| 2017-12-13 07:08:20 | Allen Li | link | issue32299 messages |
| 2017-12-13 07:08:19 | Allen Li | create | |
|