Skip to content

Commit

Permalink
Add test capturing expectation. Ref #4106.
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre authored and jaraco committed Nov 12, 2018
1 parent a66c696 commit 3f01334
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/functional/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -1473,3 +1473,19 @@ def test_install_conflict_warning_can_be_suppressed(script, data):
'install', '--no-index', pkgB_path, '--no-warn-conflicts'
)
assert "Successfully installed pkgB-2.0" in result2.stdout, str(result2)


def test_target_install_ignores_distutils_config_install_prefix(script):
prefix = script.scratch_path / 'prefix'
Path(os.environ['HOME'], '.pydistutils.cfg').write(textwrap.dedent(
'''
[install]
prefix=%s
''' % str(prefix)))
target = script.scratch_path / 'target'
result = script.pip_install_local('simplewheel', '-t', target)
assert (
"Successfully installed simplewheel" in result.stdout and
(target - script.base_path) in result.files_created and
(prefix - script.base_path) not in result.files_created
), str(result)

0 comments on commit 3f01334

Please sign in to comment.