From 30e2aac7396409e41ec122cfa744a38ac58d4b63 Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Thu, 4 Nov 2021 18:33:43 +0800 Subject: [PATCH] Fix test error --- pipenv/core.py | 2 +- tests/integration/test_cli.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pipenv/core.py b/pipenv/core.py index 86c9c027..4f2ba2db 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -2642,7 +2642,7 @@ def do_check( raise exceptions.JSONParseError(c.stdout, c.stderr) except Exception: raise exceptions.PipenvCmdError(cmd_list_to_shell(c.args), c.stdout, c.stderr, c.returncode) - for (package, resolved, installed, description, vuln) in results: + for (package, resolved, installed, description, vuln, *_) in results: click.echo( "{}: {} {} resolved ({} installed)!".format( crayons.normal(vuln, bold=True), diff --git a/tests/integration/test_cli.py b/tests/integration/test_cli.py index ea3b75ff..7c3afd34 100644 --- a/tests/integration/test_cli.py +++ b/tests/integration/test_cli.py @@ -142,7 +142,8 @@ def test_pipenv_graph_reverse(PipenvInstance): @flaky def test_pipenv_check(PipenvInstance): with PipenvInstance() as p: - p.pipenv('install requests==1.0.0') + c = p.pipenv('install requests==1.0.0') + assert c.returncode == 0 c = p.pipenv('check') assert c.returncode != 0 assert 'requests' in c.stdout