diff options
author | marcoramirezmx <55331462+marcoramirezmx@users.noreply.github.com> | 2019-09-16 16:34:46 (GMT) |
---|---|---|
committer | Stéphane Wirtel <stephane@wirtel.be> | 2019-09-16 16:34:46 (GMT) |
commit | a9187c31185fe7ea47271839898416400cc3d976 (patch) | |
tree | 50a8cd5dcc316ebac5696a2fea94f7fdb61ee85f | |
parent | f18242be16714da2cfe013dbadfaf2e31d971562 (diff) | |
download | cpython-a9187c31185fe7ea47271839898416400cc3d976.zip cpython-a9187c31185fe7ea47271839898416400cc3d976.tar.gz cpython-a9187c31185fe7ea47271839898416400cc3d976.tar.bz2 |
bpo-38100: Fix spelling error in unittest.mock code (GH-16168)
-rw-r--r-- | Lib/unittest/mock.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py index b33d58a..74d32af 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 = 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 |