[PATCH] tests: use pyflakes module instead of pyflakes executable
Yuya Nishihara
yuya at tcha.org
Sun Mar 8 05:24:50 UTC 2020
On Fri, 06 Mar 2020 23:05:06 +0100, Manuel Jacob wrote:
> # HG changeset patch
> # User Manuel Jacob <me at manueljacob.de>
> # Date 1583532298 -3600
> # Fri Mar 06 23:04:58 2020 +0100
> # Node ID 186c13bbb49fd4de4fd2c9983c3daf8fede5b177
> # Parent 4ce2330f2d0b9690cc852602a9e055491a408c03
> tests: use pyflakes module instead of pyflakes executable
Queued, thanks.
> diff --git a/tests/hghave.py b/tests/hghave.py
> --- a/tests/hghave.py
> +++ b/tests/hghave.py
> @@ -553,7 +553,7 @@
> @check("pyflakes", "Pyflakes python linter")
> def has_pyflakes():
> return matchoutput(
> - "sh -c \"echo 'import re' 2>&1 | pyflakes\"",
> + "sh -c \"echo 'import re' 2>&1 | $PYTHON -m pyflakes\"",
> br"<stdin>:1: 're' imported but unused",
> True,
Perhaps, this can be rewritten as "try: import pyflakes" since we no longer
use the pyflakes executable.
More information about the Mercurial-devel
mailing list