]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38100: Fix spelling error in unittest.mock code (GH-16168)
authormarcoramirezmx <55331462+marcoramirezmx@users.noreply.github.com>
Mon, 16 Sep 2019 16:34:46 +0000 (11:34 -0500)
committerStéphane Wirtel <stephane@wirtel.be>
Mon, 16 Sep 2019 16:34:46 +0000 (18:34 +0200)
Lib/unittest/mock.py

index b33d58a2cb0df2d180697761c3c5270ecb2fe63d..74d32af9bf99862757b08f803f1c6cb5c19f4f4d 100644 (file)
@@ -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