From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 16 Sep 2019 16:52:45 +0000 (-0700) Subject: bpo-38100: Fix spelling error in unittest.mock code (GH-16168) X-Git-Tag: v3.8.0rc1~88 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cc8edfbd9c66a40e2d405e49b75227a8d2a4dd55;p=thirdparty%2FPython%2Fcpython.git bpo-38100: Fix spelling error in unittest.mock code (GH-16168) (cherry picked from commit a9187c31185fe7ea47271839898416400cc3d976) Co-authored-by: marcoramirezmx <55331462+marcoramirezmx@users.noreply.github.com> --- diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index cbc4d76b8513..497aa6f9b9ba 100644 --- a/Lib/unittest/mock.py +++ b/Lib/unittest/mock.py @@ -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