mirror of https://github.com/pypa/pip
Add tests for the bug
This commit is contained in:
parent
085e7403b2
commit
e55fcea956
|
@ -420,3 +420,11 @@ def test_wheel_compile_syntax_error(script, data):
|
|||
result = script.pip('install', '--compile', package, '--no-index')
|
||||
assert 'yield from' not in result.stdout
|
||||
assert 'SyntaxError: ' not in result.stdout
|
||||
|
||||
|
||||
def test_wheel_install_with_no_cache_dir(script, tmpdir, data):
|
||||
"""Check wheel installations work, even with no cache.
|
||||
"""
|
||||
package = data.packages.join("simple.dist-0.1-py2.py3-none-any.whl")
|
||||
result = script.pip('install', '--no-cache-dir', '--no-index', package)
|
||||
result.assert_installed('simpledist', editable=False)
|
||||
|
|
|
@ -109,3 +109,17 @@ def test_pep517_backend_requirements_already_satisfied(script, tmpdir, data):
|
|||
project_dir,
|
||||
)
|
||||
assert 'Installing backend dependencies:' not in result.stdout
|
||||
|
||||
|
||||
def test_pep517_install_with_no_cache_dir(script, tmpdir, data):
|
||||
"""Check builds with a custom backends work, even with no cache.
|
||||
"""
|
||||
project_dir = make_project(
|
||||
tmpdir, requires=['test_backend'],
|
||||
backend="test_backend"
|
||||
)
|
||||
result = script.pip(
|
||||
'install', '--no-cache-dir', '--no-index', '-f', data.backends,
|
||||
project_dir,
|
||||
)
|
||||
result.assert_installed('project', editable=False)
|
||||
|
|
Loading…
Reference in New Issue