classification
Title: unittest.mock.Mock.unsafe doc is garbled
Type: Stage: patch review
Components: Documentation Versions: Python 3.9
process
Status: open Resolution:
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 2021-07-05 06:52 by cjw296.

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 https://docs.python.org/3.9/library/unittest.mock.html#unittest.mock.Mock, 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
https://github.com/python/cpython/commit/abb08e3af6aa19928007a349592e95e6de38467f
History
Date User Action Args
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