Skip to content

Commit 7aae4f0

Browse files
matrixisemiss-islington
authored andcommitted
[3.7] bpo-38100: Fix spelling error in unittest.mock code (GH-16195)
https://bugs.python.org/issue38100 Automerge-Triggered-By: @matrixise
1 parent ad4ce9e commit 7aae4f0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/unittest/mock.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,10 +1876,10 @@ def _set_return_value(mock, method, name):
18761876
method.return_value = fixed
18771877
return
18781878

1879-
return_calulator = _calculate_return_value.get(name)
1880-
if return_calulator is not None:
1879+
return_calculator = _calculate_return_value.get(name)
1880+
if return_calculator is not None:
18811881
try:
1882-
return_value = return_calulator(mock)
1882+
return_value = return_calculator(mock)
18831883
except AttributeError:
18841884
# XXXX why do we return AttributeError here?
18851885
# set it as a side_effect instead?

0 commit comments

Comments
 (0)