Skip to content

Commit

Permalink
bpo-38100: Fix spelling error in unittest.mock code (pythonGH-16168)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoramirezmx authored and matrixise committed Sep 16, 2019
1 parent f18242b commit a9187c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/unittest/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -1988,9 +1988,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 a9187c3

Please sign in to comment.