Skip to content

Commit

Permalink
Try to narrow down this test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Apr 25, 2024
1 parent 9c9a965 commit c4475fb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/integration/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ def test_pipenv_graph(pipenv_instance_pypi):
@pytest.mark.cli
def test_pipenv_graph_reverse(pipenv_instance_private_pypi):
from pipenv.cli import cli
from click.testing import CliRunner # not thread safe but graph is a tricky test
from pipenv.vendor.click.testing import CliRunner # not thread safe but graph is a tricky test

with pipenv_instance_private_pypi() as p:
with (pipenv_instance_private_pypi() as p):
c = p.pipenv('install tablib==0.13.0')
assert c.returncode == 0
cli_runner = CliRunner(mix_stderr=False)
Expand Down Expand Up @@ -131,7 +131,10 @@ def test_pipenv_graph_reverse(pipenv_instance_private_pypi):
flags=re.MULTILINE | re.IGNORECASE)
assert openpyxl_dep is None, f'openpyxl should not appear at beginning of lines in {output}'

assert 'openpyxl==2.5.4 [requires: et-xmlfile]' in output or 'openpyxl==2.5.4 [requires: et_xmlfile]' in output
if sys.version_info[:2] == (3, 12):
assert 'openpyxl==2.5.4 [requires: et-xmlfile]' in output
else:
assert 'openpyxl==2.5.4 [requires: et_xmlfile]' in output
else:
dep_match = re.search(fr'^[ -]*{dep_name}==[\d.]+$',
output,
Expand Down

0 comments on commit c4475fb

Please sign in to comment.