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

[FEATURE]: Replace Mock with Unittest.Mock #755

Closed
thebeanogamer opened this issue Oct 20, 2024 · 0 comments · Fixed by #777
Closed

[FEATURE]: Replace Mock with Unittest.Mock #755

thebeanogamer opened this issue Oct 20, 2024 · 0 comments · Fixed by #777
Assignees
Labels
type/feature-request New feature or request
Milestone

Comments

@thebeanogamer
Copy link

Describe the solution you'd like
Since Python 3.3 (https://docs.python.org/3/whatsnew/3.3.html), mock has been part of the Python standard library as unittest.mock. This repo currently calls mock from PyPi rather than the more modern unittest.mock, it should switch to unittest.mock.

Describe alternatives you've considered
Stay on mock for compatibility with Python 3.2, which has been End of Life since 2016.

Additional context
https://peps.python.org/pep-0417/
https://fedoraproject.org/wiki/Changes/DeprecatePythonMock

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature-request New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

4 participants