mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +01:00
Update test_pip_completer.py (#4890)
* Update test_pip_completer.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
37f6adb159
commit
8a5b50e084
1 changed files with 3 additions and 1 deletions
|
@ -40,7 +40,9 @@ def test_pip_list_re1(line):
|
|||
|
||||
|
||||
def pip_installed():
|
||||
out = subprocess.check_output(["pip", "list", "--format=json"]).decode()
|
||||
out = subprocess.check_output(
|
||||
["pip", "list", "--format=json", "--disable-pip-version-check"]
|
||||
).decode()
|
||||
pkgs = json.loads(out)
|
||||
return {p["name"] for p in pkgs}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue