]> granicus.if.org Git - python/commitdiff
bpo-38100: Fix spelling error in unittest.mock code (GH-16168)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 16 Sep 2019 16:52:45 +0000 (09:52 -0700)
committerGitHub <noreply@github.com>
Mon, 16 Sep 2019 16:52:45 +0000 (09:52 -0700)
(cherry picked from commit a9187c31185fe7ea47271839898416400cc3d976)

Co-authored-by: marcoramirezmx <55331462+marcoramirezmx@users.noreply.github.com>
Lib/unittest/mock.py

index cbc4d76b8513620e2116e949ff94e328edff1c15..497aa6f9b9ba829a96194c734377634f23b9be46 100644 (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