[issue44534] unittest.mock.Mock.unsafe doc is garbled

New submission from Roy Smith <roy@panix.com>: 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." ---------- assignee: docs@python components: Documentation messages: 396719 nosy: docs@python, roysmith priority: normal severity: normal status: open title: unittest.mock.Mock.unsafe doc is garbled versions: Python 3.9 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue44534> _______________________________________

Change by Jack DeVries <jdevries3133@gmail.com>: ---------- keywords: +patch nosy: +jack__d nosy_count: 2.0 -> 3.0 pull_requests: +25560 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27000 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue44534> _______________________________________

Chris Withers <chris@withers.org> added the comment: 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/abb08e3af6aa19928007a349592e95e6de3... ---------- nosy: +cjw296 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue44534> _______________________________________

Change by Andrei Kulakov <andrei.avk@gmail.com>: ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11 -Python 3.9 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue44534> _______________________________________
participants (4)
-
Andrei Kulakov
-
Chris Withers
-
Jack DeVries
-
Roy Smith