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

Miss Islington (bot) webhook-mailer at python.org
Mon Sep 16 12:52:50 EDT 2019


https://github.com/python/cpython/commit/cc8edfbd9c66a40e2d405e49b75227a8d2a4dd55
commit: cc8edfbd9c66a40e2d405e49b75227a8d2a4dd55
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-09-16T09:52:45-07:00
summary:

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

(cherry picked from commit a9187c31185fe7ea47271839898416400cc3d976)

Co-authored-by: marcoramirezmx <55331462+marcoramirezmx at users.noreply.github.com>

files:
M Lib/unittest/mock.py

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
 



More information about the Python-checkins mailing list