[issue35082] Mock.__dir__ lists deleted attributes

2019-06-06 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35082] Mock.__dir__ lists deleted attributes

2019-06-06 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue35082] Mock.__dir__ lists deleted attributes

2019-06-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +13735 pull_request: https://github.com/python/cpython/pull/13859 ___ Python tracker ___ __

[issue35082] Mock.__dir__ lists deleted attributes

2018-10-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue35082] Mock.__dir__ lists deleted attributes

2018-10-27 Thread Mario Corchero
Change by Mario Corchero : -- keywords: +patch pull_requests: +9476 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue35082] Mock.__dir__ lists deleted attributes

2018-10-27 Thread Mario Corchero
New submission from Mario Corchero : Calling dir on unittest.mock.Mock will return deleted attributes. This is a result of the way del is implemented in Mock, which just sets a sentinel in the child mocks, so an AttributeError is raised if the attribute is later accessed. We can just check f