Skip to content

Commit

Permalink
bpo-38100: Fix spelling error in unittest.mock code (GH-16168)
Browse files Browse the repository at this point in the history
(cherry picked from commit a9187c3)

Co-authored-by: marcoramirezmx <55331462+marcoramirezmx@users.noreply.github.com>
  • Loading branch information
miss-islington and marcoramirezmx committed Sep 16, 2019
1 parent 9dc381c commit cc8edfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/unittest/mock.py
Expand Up @@ -1974,9 +1974,9 @@ def _set_return_value(mock, method, name):
method.return_value = fixed
return

return_calulator = _calculate_return_value.get(name)
if return_calulator is not None:
return_value = return_calulator(mock)
return_calculator = _calculate_return_value.get(name)
if return_calculator is not None:
return_value = return_calculator(mock)
method.return_value = return_value
return

Expand Down

0 comments on commit cc8edfb

Please sign in to comment.