Skip to content

Commit c4475fb

Browse files
committed
Try to narrow down this test failure
1 parent 9c9a965 commit c4475fb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/integration/test_cli.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ def test_pipenv_graph(pipenv_instance_pypi):
9898
@pytest.mark.cli
9999
def test_pipenv_graph_reverse(pipenv_instance_private_pypi):
100100
from pipenv.cli import cli
101-
from click.testing import CliRunner # not thread safe but graph is a tricky test
101+
from pipenv.vendor.click.testing import CliRunner # not thread safe but graph is a tricky test
102102

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

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

0 commit comments

Comments
 (0)