Skip to content

Commit cc8edfb

Browse files
bpo-38100: Fix spelling error in unittest.mock code (GH-16168)
(cherry picked from commit a9187c3) Co-authored-by: marcoramirezmx <[email protected]>
1 parent 9dc381c commit cc8edfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/unittest/mock.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1974,9 +1974,9 @@ def _set_return_value(mock, method, name):
19741974
method.return_value = fixed
19751975
return
19761976

1977-
return_calulator = _calculate_return_value.get(name)
1978-
if return_calulator is not None:
1979-
return_value = return_calulator(mock)
1977+
return_calculator = _calculate_return_value.get(name)
1978+
if return_calculator is not None:
1979+
return_value = return_calculator(mock)
19801980
method.return_value = return_value
19811981
return
19821982

0 commit comments

Comments
 (0)