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

Use deprecated mock only on Python 2.7 #14

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

michel-slm
Copy link
Contributor

unittest.mock has been part of the Python standard library since Python 3.3.

Only install the old mock in the py2.7 tox target, and edit the test file to prefer unittest.mock and fall back to mock as Python 2.7 has been EOL since January 1, 2020 anyway: https://www.python.org/doc/sunset-python-2/

`unittest.mock` has been part of the Python standard library since
Python 3.3.

Only install the old `mock` in the `py2.7` tox target, and edit the test
file to prefer `unittest.mock` and fall back to `mock` as Python 2.7 has
been EOL since January 1, 2020 anyway: https://www.python.org/doc/sunset-python-2/

Signed-off-by: Michel Lind <[email protected]>
Copy link
Owner

@wkeeling wkeeling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for the MR!

@wkeeling wkeeling merged commit 852aa57 into wkeeling:master Feb 22, 2024
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.

2 participants