File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,9 @@ def test_pipenv_graph(pipenv_instance_pypi):
98
98
@pytest .mark .cli
99
99
def test_pipenv_graph_reverse (pipenv_instance_private_pypi ):
100
100
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
102
102
103
- with pipenv_instance_private_pypi () as p :
103
+ with ( pipenv_instance_private_pypi () as p ) :
104
104
c = p .pipenv ('install tablib==0.13.0' )
105
105
assert c .returncode == 0
106
106
cli_runner = CliRunner (mix_stderr = False )
@@ -131,7 +131,10 @@ def test_pipenv_graph_reverse(pipenv_instance_private_pypi):
131
131
flags = re .MULTILINE | re .IGNORECASE )
132
132
assert openpyxl_dep is None , f'openpyxl should not appear at beginning of lines in { output } '
133
133
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
135
138
else :
136
139
dep_match = re .search (fr'^[ -]*{ dep_name } ==[\d.]+$' ,
137
140
output ,
You can’t perform that action at this time.
0 commit comments