[Python-checkins] (no subject)

Stéphane Wirtel webhook-mailer at python.org
Mon Sep 16 12:34:49 EDT 2019




To: python-checkins at python.org
Subject: bpo-38100: Fix spelling error in unittest.mock code (GH-16168)
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

https://github.com/python/cpython/commit/a9187c31185fe7ea47271839898416400cc3=
d976
commit: a9187c31185fe7ea47271839898416400cc3d976
branch: master
author: marcoramirezmx <55331462+marcoramirezmx at users.noreply.github.com>
committer: St=C3=A9phane Wirtel <stephane at wirtel.be>
date: 2019-09-16T18:34:46+02:00
summary:

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

files:
M Lib/unittest/mock.py

diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py
index b33d58a2cb0d..74d32af9bf99 100644
--- a/Lib/unittest/mock.py
+++ b/Lib/unittest/mock.py
@@ -1988,9 +1988,9 @@ def _set_return_value(mock, method, name):
         method.return_value =3D fixed
         return
=20
-    return_calulator =3D _calculate_return_value.get(name)
-    if return_calulator is not None:
-        return_value =3D return_calulator(mock)
+    return_calculator =3D _calculate_return_value.get(name)
+    if return_calculator is not None:
+        return_value =3D return_calculator(mock)
         method.return_value =3D return_value
         return
=20



More information about the Python-checkins mailing list