We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Originally reported by: Ignacio Rossi (BitBucket: pignacio, GitHub: @pignacio?)
If there's no mock module at the same level, the following code, when linted, produces an expected "Unable to import 'mock'" error
mock
#!python from .mock import patch patch('a.b')
But, if the mock library is present (via pip install mock), the error dissapears, even though the relative import keeps failing.
pip install mock
Tested on a clean virtualenv using latest version. Here's my pip freeze
pip freeze
argparse==1.2.1 astroid==1.3.6 logilab-common==0.63.2 pylint==1.4.3 six==1.9.0 wsgiref==0.1.2
The text was updated successfully, but these errors were encountered:
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore):
Thanks for the report and sorry for the delay.
Using the latest astroid tip https://bitbucket.org/logilab/astroid/commits/e907876a292f4ee009d65505e610dbc8c7956e30, the output now looks like this:
#!python C: 3, 0: Final newline missing (missing-final-newline) C: 1, 0: Missing module docstring (missing-docstring) E: 1, 0: Unable to import 'mock' (import-error)
I'll update the import-error message to show that's in fact '.mock'.
Sorry, something went wrong.
refactor: use 'WhichOneof' for dispatch in 'Watch.on_snapshot' (pylin…
e68e9de
…t-dev#500) Also, remove weird mocking for BIDI classes.
fix: stop / start stream after filter mismatch (pylint-dev#502)
a256752
~~Based on branch for PR pylint-dev#500 -- I will rebase after that PR merges.~~ Closes pylint-dev#367. Supersedes PR pylint-dev#497.
No branches or pull requests
Originally reported by: Ignacio Rossi (BitBucket: pignacio, GitHub: @pignacio?)
If there's no
mock
module at the same level, the following code, when linted, produces an expected "Unable to import 'mock'" errorBut, if the mock library is present (via
pip install mock
), the error dissapears, even though the relative import keeps failing.Tested on a clean virtualenv using latest version. Here's my
pip freeze
The text was updated successfully, but these errors were encountered: