-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inappropriateness in unittest documentation with actual behavior #118912
Comments
Note that the doc describes the pre-Python 3.5 behavior. Since Python 3.5, one has to enable the cpython/Doc/library/unittest.mock.rst Line 269 in c444362
|
I am working on this issue! I hope to finish it today (at the PyCon sprints) |
… guide (#119232) * Remove description of issue fixed in 3.5 from autospeccing guide * Make autospeccing note text more succint and lint whitespace * Add linting changes (missed in last commit) --------- Co-authored-by: Carol Willing <[email protected]>
…eccing guide (pythonGH-119232) * Remove description of issue fixed in 3.5 from autospeccing guide * Make autospeccing note text more succint and lint whitespace * Add linting changes (missed in last commit) --------- (cherry picked from commit 7e57640) Co-authored-by: Shauna <[email protected]> Co-authored-by: Carol Willing <[email protected]>
…eccing guide (pythonGH-119232) * Remove description of issue fixed in 3.5 from autospeccing guide * Make autospeccing note text more succint and lint whitespace * Add linting changes (missed in last commit) --------- (cherry picked from commit 7e57640) Co-authored-by: Shauna <[email protected]> Co-authored-by: Carol Willing <[email protected]>
…peccing guide (GH-119232) (#119283) gh-118912: Remove description of issue fixed in 3.5 from autospeccing guide (GH-119232) * Remove description of issue fixed in 3.5 from autospeccing guide * Make autospeccing note text more succint and lint whitespace * Add linting changes (missed in last commit) --------- (cherry picked from commit 7e57640) Co-authored-by: Shauna <[email protected]> Co-authored-by: Carol Willing <[email protected]>
…peccing guide (GH-119232) (#119284) gh-118912: Remove description of issue fixed in 3.5 from autospeccing guide (GH-119232) * Remove description of issue fixed in 3.5 from autospeccing guide * Make autospeccing note text more succint and lint whitespace * Add linting changes (missed in last commit) --------- (cherry picked from commit 7e57640) Co-authored-by: Shauna <[email protected]> Co-authored-by: Carol Willing <[email protected]>
…eccing guide (python#119232) * Remove description of issue fixed in 3.5 from autospeccing guide * Make autospeccing note text more succint and lint whitespace * Add linting changes (missed in last commit) --------- Co-authored-by: Carol Willing <[email protected]>
Documentation
https://docs.python.org/3/library/unittest.mock.html#auto-speccing
cpython/Doc/library/unittest.mock.rst
Line 2615 in c444362
Expected that tests will pass as written in doc.
But actually script fails with raising error.
Am i missing something? I have tested this in Python3.11 and Python 3.12.
Looks like documentation must be updated or script must work as said in documenation.
Thanks for attention
Linked PRs
The text was updated successfully, but these errors were encountered: