Skip to content

Commit a5d9a57

Browse files
committed
fix test
1 parent 10698e4 commit a5d9a57

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/functional/test_install.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -890,17 +890,17 @@ def test_install_builds_wheels(script, data):
890890
# Must have installed it all
891891
assert expected in str(res), str(res)
892892
root = appdirs.user_cache_dir('pip')
893-
wheels = []
893+
files_in_cache = []
894894
for top, dirs, files in os.walk(os.path.join(root, "wheels")):
895-
wheels.extend(files)
895+
files_in_cache.extend(files)
896896
# and built wheels for upper and wheelbroken
897897
assert "Running setup.py bdist_wheel for upper" in str(res), str(res)
898898
assert "Running setup.py bdist_wheel for wheelb" in str(res), str(res)
899899
# But not requires_wheel... which is a local dir and thus uncachable.
900900
assert "Running setup.py bdist_wheel for requir" not in str(res), str(res)
901901
# wheelbroken has to run install
902902
# into the cache
903-
assert wheels != [], str(res)
903+
assert files_in_cache != [], str(res)
904904
# and installed from the wheel
905905
assert "Running setup.py install for upper" not in str(res), str(res)
906906
# 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):
909909
# wheelbroken has to run install
910910
assert "Running setup.py install for wheelb" in str(res), str(res)
911911
# We want to make sure we used the correct implementation tag
912-
assert wheels == [
912+
assert files_in_cache == [
913913
"Upper-2.0-{0}-none-any.whl".format(pep425tags.implementation_tag),
914+
"link",
914915
]
915916

916917

0 commit comments

Comments
 (0)