Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
xavfernandez committed Mar 5, 2016
1 parent 10698e4 commit a5d9a57
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/functional/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -890,17 +890,17 @@ def test_install_builds_wheels(script, data):
# Must have installed it all
assert expected in str(res), str(res)
root = appdirs.user_cache_dir('pip')
wheels = []
files_in_cache = []
for top, dirs, files in os.walk(os.path.join(root, "wheels")):
wheels.extend(files)
files_in_cache.extend(files)
# and built wheels for upper and wheelbroken
assert "Running setup.py bdist_wheel for upper" in str(res), str(res)
assert "Running setup.py bdist_wheel for wheelb" in str(res), str(res)
# But not requires_wheel... which is a local dir and thus uncachable.
assert "Running setup.py bdist_wheel for requir" not in str(res), str(res)
# wheelbroken has to run install
# into the cache
assert wheels != [], str(res)
assert files_in_cache != [], str(res)
# and installed from the wheel
assert "Running setup.py install for upper" not in str(res), str(res)
# the local tree can't build a wheel (because we can't assume that every
Expand All @@ -909,8 +909,9 @@ def test_install_builds_wheels(script, data):
# wheelbroken has to run install
assert "Running setup.py install for wheelb" in str(res), str(res)
# We want to make sure we used the correct implementation tag
assert wheels == [
assert files_in_cache == [
"Upper-2.0-{0}-none-any.whl".format(pep425tags.implementation_tag),
"link",
]


Expand Down

0 comments on commit a5d9a57

Please sign in to comment.