@@ -149,7 +149,7 @@ def test_cache_list(script):
149149def test_cache_list_abspath (script ):
150150 """Running `pip cache list --abspath` should return full
151151 paths of exactly what the populate_wheel_cache fixture adds."""
152- result = script .pip ('cache' , 'list' , '--abspath' )
152+ result = script .pip ('cache' , 'list' , '--format= abspath' )
153153
154154 assert list_matches_wheel_abspath ('yyy-1.2.3' , result )
155155 assert list_matches_wheel_abspath ('zzz-4.5.6' , result )
@@ -169,7 +169,7 @@ def test_cache_list_with_empty_cache(script):
169169def test_cache_list_with_empty_cache_abspath (script ):
170170 """Running `pip cache list --abspath` with an empty cache should not
171171 print anything and exit."""
172- result = script .pip ('cache' , 'list' , '--abspath' )
172+ result = script .pip ('cache' , 'list' , '--format= abspath' )
173173 assert result .stdout .strip () == ""
174174
175175
@@ -195,7 +195,8 @@ def test_cache_list_name_match(script):
195195def test_cache_list_name_match_abspath (script ):
196196 """Running `pip cache list zzz --abspath` should list paths of
197197 zzz-4.5.6, zzz-4.5.7, zzz-7.8.9, but nothing else."""
198- result = script .pip ('cache' , 'list' , 'zzz' , '--abspath' , '--verbose' )
198+ result = script .pip ('cache' , 'list' , 'zzz' , '--format=abspath' ,
199+ '--verbose' )
199200
200201 assert not list_matches_wheel_abspath ('yyy-1.2.3' , result )
201202 assert list_matches_wheel_abspath ('zzz-4.5.6' , result )
@@ -219,7 +220,8 @@ def test_cache_list_name_and_version_match(script):
219220def test_cache_list_name_and_version_match_abspath (script ):
220221 """Running `pip cache list zzz-4.5.6 --abspath` should list path of
221222 zzz-4.5.6, but nothing else."""
222- result = script .pip ('cache' , 'list' , 'zzz-4.5.6' , '--abspath' , '--verbose' )
223+ result = script .pip ('cache' , 'list' , 'zzz-4.5.6' , '--format=abspath' ,
224+ '--verbose' )
223225
224226 assert not list_matches_wheel_abspath ('yyy-1.2.3' , result )
225227 assert list_matches_wheel_abspath ('zzz-4.5.6' , result )
0 commit comments