mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-38100: Fix spelling error in unittest.mock code (GH-16168)
This commit is contained in:
parent
f18242be16
commit
a9187c3118
1 changed files with 3 additions and 3 deletions
|
@ -1988,9 +1988,9 @@ def _set_return_value(mock, method, name):
|
||||||
method.return_value = fixed
|
method.return_value = fixed
|
||||||
return
|
return
|
||||||
|
|
||||||
return_calulator = _calculate_return_value.get(name)
|
return_calculator = _calculate_return_value.get(name)
|
||||||
if return_calulator is not None:
|
if return_calculator is not None:
|
||||||
return_value = return_calulator(mock)
|
return_value = return_calculator(mock)
|
||||||
method.return_value = return_value
|
method.return_value = return_value
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue