
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2018-10-27 10:45 bymariocj89, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 10148 | merged | mariocj89,2018-10-27 10:50 | |
| PR 13859 | merged | miss-islington,2019-06-06 10:39 | |
| Messages (1) | |||
|---|---|---|---|
| msg328647 -(view) | Author: Mario Corchero (mariocj89)*![]() | Date: 2018-10-27 10:45 | |
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 for such sentinel in the __dir__ method and not return those. | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:07 | admin | set | github: 79263 |
| 2019-06-06 10:40:30 | asvetlov | set | versions: + Python 3.7 |
| 2019-06-06 10:40:24 | asvetlov | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2019-06-06 10:39:08 | miss-islington | set | pull_requests: +pull_request13735 |
| 2018-10-27 14:44:34 | serhiy.storchaka | set | nosy: +michael.foord |
| 2018-10-27 10:50:57 | mariocj89 | set | keywords: +patch stage: patch review pull_requests: +pull_request9476 |
| 2018-10-27 10:45:10 | mariocj89 | create | |