bpo-38100: Fix spelling error in unittest.mock code (GH-16168)

(cherry picked from commit a9187c3118)

Co-authored-by: marcoramirezmx <55331462+marcoramirezmx@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2019-09-16 09:52:45 -07:00 committed by GitHub
parent 9dc381c0aa
commit cc8edfbd9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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