-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[test] Use an empty pylintrc so tests to not depend on system's conf #8350
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/PyCQA/pylint/blob/main/pylint/testutils/_run.py#L28
We can just use this class. We have fixed this issue before 😄
Yeah I was checking how to do that generically and I rediscovered this too 😅 |
df86a24
to
a5b7258
Compare
All right, should be better, and hopefully emulate using the test runner in new tests from now on 😄 |
@@ -222,6 +222,7 @@ def test_allow_reexport_package(capsys: CaptureFixture[str]) -> None: | |||
[ | |||
f"{os.path.join(REGR_DATA, 'allow_reexport')}", | |||
"--allow-reexport-from-package=yes", | |||
"--disable=missing-module-docstring", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're forced to do it this way because of the check line 232
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
…8350) * [test] Use an empty pylintrc so tests to not depend on system's conf Closes #8342 * Update tests/checkers/unittest_imports.py Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> --------- Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> (cherry picked from commit 641f526)
…8350) (#8351) * [test] Use an empty pylintrc so tests to not depend on system's conf Closes #8342 * Update tests/checkers/unittest_imports.py Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> --------- Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> (cherry picked from commit 641f526) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Type of Changes
Description
Closes #8342, and fix test that could create similar bugs with specifics configurations.