Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using mock in favor of unittest.mock. #74

Merged
merged 2 commits into from
Feb 3, 2022

Conversation

clalancette
Copy link
Contributor

Mock has been deprecated since Python 3.3; see
https://pypi.org/project/mock/ . The recommended replacement
is unittest.mock, which seems to be a drop-in replacement.

Signed-off-by: Chris Lalancette clalancette@openrobotics.org

Closes #73 . This should be merged after #68 , as this only works on Python 3.

Mock has been deprecated since Python 3.3; see
https://pypi.org/project/mock/ .  The recommended replacement
is unittest.mock, which seems to be a drop-in replacement.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@wjwwood wjwwood mentioned this pull request Feb 2, 2022
@wjwwood wjwwood closed this Feb 3, 2022
@wjwwood wjwwood reopened this Feb 3, 2022
@wjwwood
Copy link
Member

wjwwood commented Feb 3, 2022

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@wjwwood wjwwood merged commit fbc0953 into master Feb 3, 2022
@wjwwood wjwwood deleted the clalancette/switch-to-unittest-mock branch February 3, 2022 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove import mock in test_terminal_utils.py
2 participants