-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Do not fallback when importing "unittest.mock" #68
Comments
This was referenced Nov 3, 2016
This was referenced Dec 13, 2016
This was referenced Dec 31, 2016
This was referenced Jan 13, 2017
This was referenced May 19, 2017
This was referenced Jul 22, 2017
4 tasks
4 tasks
This was referenced Feb 12, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use this instead:
This way we don't "swallow" the first exception in Python 2 in case something goes wrong when importing
mock
.EDIT: Just for the record, the first import mock as mock_module was raising an
ImportError
but not because mock was missing, one of its dependencies was not installed (it was a frozen application). This made this problem much harder to debug.cc @gqmelo
The text was updated successfully, but these errors were encountered: