Skip to content

Commit

Permalink
fix(tests): Call pylint binary instead of the module
Browse files Browse the repository at this point in the history
pylint is a command-line tool, and it should not be invoked as a
module, aka `pythonX.Y -m pylint`.

Bug-Debian: https://bugs.debian.org/1028704
  • Loading branch information
bdrung committed Aug 1, 2024
1 parent b7393ba commit 00a3167
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_pylint.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class PylintTestCase(unittest.TestCase):
def test_pylint(self):
"""Test: Run pylint on Python source code."""

cmd = [sys.executable, "-m", "pylint", "--rcfile=" + CONFIG, "--"] + get_source_files()
cmd = ["pylint", "--rcfile=" + CONFIG, "--"] + get_source_files()
if os.environ.get("SKIP_LINTERS"):
cmd.insert(4, "--errors-only")
cmd.insert(2, "--errors-only")
if unittest_verbosity() >= 2:
sys.stderr.write(f"Running following command:\n{' '.join(cmd)}\n")
with subprocess.Popen(
Expand Down

0 comments on commit 00a3167

Please sign in to comment.