mirror of
https://github.com/python/cpython.git
synced 2025-11-17 01:25:57 +00:00
Add a missing parenthesis.
This commit is contained in:
parent
2cefb3cf96
commit
533f1ed334
1 changed files with 1 additions and 1 deletions
|
|
@ -468,7 +468,7 @@ the `new_callable` argument to `patch`.
|
||||||
mock and unless the function returns the :data:`DEFAULT` singleton the
|
mock and unless the function returns the :data:`DEFAULT` singleton the
|
||||||
call to the mock will then return whatever the function returns. If the
|
call to the mock will then return whatever the function returns. If the
|
||||||
function returns :data:`DEFAULT` then the mock will return its normal
|
function returns :data:`DEFAULT` then the mock will return its normal
|
||||||
value (from the :attr:`return_value`.
|
value (from the :attr:`return_value`).
|
||||||
|
|
||||||
An example of a mock that raises an exception (to test exception
|
An example of a mock that raises an exception (to test exception
|
||||||
handling of an API):
|
handling of an API):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue