This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: unittest.mock.Mock.unsafe doc is garbled
Type: Stage: resolved
Components: Documentation Versions: Python 3.11, Python 3.10
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: cjw296, docs@python, jack__d, roysmith
Priority: normal Keywords: patch

Created on 2021-06-29 12:14 by roysmith, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 27000 merged jack__d, 2021-07-02 20:23
Messages (2)
msg396719 - (view) Author: Roy Smith (roysmith) Date: 2021-06-29 12:14
At, it says:

unsafe: By default if any attribute starts with assert or assret will raise an AttributeError.

That's not an English sentence.  I think what was intended was, "By default accessing an attribute which starts with assert or assret will raise an AttributeError."
msg396971 - (view) Author: Chris Withers (cjw296) * (Python committer) Date: 2021-07-05 06:52
New changeset abb08e3af6aa19928007a349592e95e6de38467f by Jack DeVries in branch 'main':
bpo-44534: fix wording and docstring sync in unittest.Mock GH27000
Date User Action Args
2022-04-11 14:59:47adminsetgithub: 88700
2021-12-04 23:56:38andrei.avksetstatus: open -> closed
stage: patch review -> resolved
resolution: fixed
versions: + Python 3.10, Python 3.11, - Python 3.9
2021-07-05 06:52:45cjw296setnosy: + cjw296
messages: + msg396971
2021-07-02 20:23:40jack__dsetkeywords: + patch
nosy: + jack__d

pull_requests: + pull_request25560
stage: patch review
2021-06-29 12:14:15roysmithcreate