mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Fix test_install_no_binary_disables_building_wheels
The only files present in the cache were http cache files from the pip install wheel command.
This commit is contained in:
parent
b709b1ef4a
commit
1c7876fa49
|
@ -1013,19 +1013,12 @@ def test_install_no_binary_disables_building_wheels(
|
|||
" upper-2.0 wheelbroken-0.1")
|
||||
# Must have installed it all
|
||||
assert expected in str(res), str(res)
|
||||
root = appdirs.user_cache_dir('pip')
|
||||
wheels = []
|
||||
for top, dirs, files in os.walk(root):
|
||||
wheels.extend(files)
|
||||
# and built wheels for wheelbroken only
|
||||
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)
|
||||
# Nor upper, which was blacklisted
|
||||
assert "Running setup.py bdist_wheel for upper" not in str(res), str(res)
|
||||
# wheelbroken has to run install
|
||||
# into the cache
|
||||
assert wheels != [], str(res)
|
||||
# the local tree can't build a wheel (because we can't assume that every
|
||||
# build will have a suitable unique key to cache on).
|
||||
assert "Running setup.py install for requires-wheel" in str(res), str(res)
|
||||
|
|
|
@ -341,7 +341,8 @@ def test_constrained_to_url_install_same_url(script, data):
|
|||
|
||||
|
||||
@pytest.mark.network
|
||||
def test_double_install_spurious_hash_mismatch(script, tmpdir, common_wheels):
|
||||
def test_double_install_spurious_hash_mismatch(
|
||||
script, tmpdir, data, common_wheels):
|
||||
"""Make sure installing the same hashed sdist twice doesn't throw hash
|
||||
mismatch errors.
|
||||
|
||||
|
@ -368,7 +369,7 @@ def test_double_install_spurious_hash_mismatch(script, tmpdir, common_wheels):
|
|||
# Then install it again. We should not hit a hash mismatch, and the
|
||||
# package should install happily.
|
||||
result = script.pip_install_local(
|
||||
'--find-links', data.find_links,
|
||||
'--find-links', data.find_links, '-f', common_wheels,
|
||||
'-r', reqs_file.abspath, expect_error=False)
|
||||
assert 'Successfully installed simple-1.0' in str(result)
|
||||
|
||||
|
|
Loading…
Reference in a new issue