@@ -890,17 +890,17 @@ def test_install_builds_wheels(script, data):
890
890
# Must have installed it all
891
891
assert expected in str (res ), str (res )
892
892
root = appdirs .user_cache_dir ('pip' )
893
- wheels = []
893
+ files_in_cache = []
894
894
for top , dirs , files in os .walk (os .path .join (root , "wheels" )):
895
- wheels .extend (files )
895
+ files_in_cache .extend (files )
896
896
# and built wheels for upper and wheelbroken
897
897
assert "Running setup.py bdist_wheel for upper" in str (res ), str (res )
898
898
assert "Running setup.py bdist_wheel for wheelb" in str (res ), str (res )
899
899
# But not requires_wheel... which is a local dir and thus uncachable.
900
900
assert "Running setup.py bdist_wheel for requir" not in str (res ), str (res )
901
901
# wheelbroken has to run install
902
902
# into the cache
903
- assert wheels != [], str (res )
903
+ assert files_in_cache != [], str (res )
904
904
# and installed from the wheel
905
905
assert "Running setup.py install for upper" not in str (res ), str (res )
906
906
# the local tree can't build a wheel (because we can't assume that every
@@ -909,8 +909,9 @@ def test_install_builds_wheels(script, data):
909
909
# wheelbroken has to run install
910
910
assert "Running setup.py install for wheelb" in str (res ), str (res )
911
911
# We want to make sure we used the correct implementation tag
912
- assert wheels == [
912
+ assert files_in_cache == [
913
913
"Upper-2.0-{0}-none-any.whl" .format (pep425tags .implementation_tag ),
914
+ "link" ,
914
915
]
915
916
916
917
0 commit comments