-
Notifications
You must be signed in to change notification settings - Fork 593
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
Drop PyPI mock test dependency #2190
Drop PyPI mock test dependency #2190
Conversation
I want to just drop python 2 support at this point. Thanks for submitting this PR. |
You’re welcome. Are you ready to drop Python 2 support immediately? I can easily add a commit to this PR that removes the workarounds for Python 2, if that is helpful. |
Should be covered in #2195 |
Just merged in the python 2.7 EOL changes |
It looks like #2195 did not remove the PyPI |
The functionality is in the standard library as unittest.mock beginning with Python 3.3. Since aws-cloudformation#2195 removed support for everything below Python 3.6, the dependency can be removed unconditionally.
ff1d4fb
to
de5f17e
Compare
The dependency removal is now unconditional, which makes for a much cleaner PR. |
python-mock is no longer necessary after aws-cloudformation/cfn-lint#2190 git-svn-id: file:///srv/repos/svn-community/svn@1111241 9fca08f4-af9d-4005-b8df-a31f2cc04f65
python-mock is no longer necessary after aws-cloudformation/cfn-lint#2190 git-svn-id: file:///srv/repos/svn-community/svn@1111241 9fca08f4-af9d-4005-b8df-a31f2cc04f65
The functionality is in the standard library as unittest.mock beginning with Python 3.3. Since aws-cloudformation#2195 removed support for everything below Python 3.6, the dependency can be removed unconditionally.
The functionality is in the standard library as
unittest.mock
beginning with Python 3.3.Issue #, if available: (none)
Description of changes:
In any tests, prefer to import from
unittest.mock
in the Python 3.3+ standard library, falling back to the PyPImock
backport package only where required (Python 2.7). Drop themock
dependency fromtox.ini
for Python 3.3+, too.See https://fedoraproject.org/wiki/Changes/DeprecatePythonMock for further context.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.