-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
Mock part of python 3.x #685
Conversation
Now that Bandit is Python 3.5+ only, there is no need to install the mock library. The mock library became part of base Python as of Python 3.3. See [1] [1] https://pypi.org/project/mock/ Signed-off-by: Eric Brown <browne@vmware.com>
Except that the |
|
Right, so I will push a change with tests that fails on CI and have to adjust to dance around something missing from |
no problem, but please be aware that due to second point the very same thing will happen with |
It never has in my experience. It's excellently maintained |
It really seem to be, but there is no mention on it when, for a particular python version, you will or will not have a support for particular Example:
In under python 3.6 the
In under python 3.5 the
fun fact: some (not all) So if you original was that with |
@sigmavirus24 We're now seeing pep8 failures in Bandit on new PRs due to using the 3rd party mock. We could disable the warning, but interested to hear if you've changed your mind on this one?
|
I'm going to merge this in order to repair our unit tests and cut down on another dependency. |
Now that Bandit is Python 3.5+ only, there is no need to install the mock library. The mock library became part of base Python as of Python 3.3. See [1] [1] https://pypi.org/project/mock/ Signed-off-by: Eric Brown <browne@vmware.com> Co-authored-by: Luke Hinds <7058938+lukehinds@users.noreply.github.com>
Now that Bandit is Python 3.5+ only, there is no need to install
the mock library. The mock library became part of base Python as
of Python 3.3. See [1]
[1] https://pypi.org/project/mock/
Signed-off-by: Eric Brown browne@vmware.com