Skip to content
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

pylint: Use 'exit' instead of 'do_exit' for pylint.lint.Run #1160

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/pylint/censorship.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def run(self):

pylint.lint.Run(args,
reporter=TextReporter(self._stdout),
do_exit=False)
exit=False)

return self._process_output()

Expand Down
4 changes: 2 additions & 2 deletions tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ def _should_skip(distro=None, version=None, arch=None, reason=None): # pylint:

# DISTRO, VERSION and ARCH variables are set in main, we don't need to
# call hostnamectl etc. for every test run
if (distro is None or DISTRO in distro) and (version is None or VERSION in version) and \
(arch is None or ARCH in arch):
if ((distro is None or DISTRO in distro) and (version is None or VERSION in version) and # pylint: disable=used-before-assignment
(arch is None or ARCH in arch)): # pylint: disable=used-before-assignment
return True

return False
Expand Down
Loading