Kaydet (Commit) 21cc628e authored tarafından Brett Cannon's avatar Brett Cannon

merge

...@@ -467,7 +467,7 @@ the `new_callable` argument to `patch`. ...@@ -467,7 +467,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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment