Skip to content

Commit 3f01334

Browse files
benoit-pierrejaraco
authored andcommitted
Add test capturing expectation. Ref #4106.
1 parent a66c696 commit 3f01334

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/functional/test_install.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,3 +1473,19 @@ def test_install_conflict_warning_can_be_suppressed(script, data):
14731473
'install', '--no-index', pkgB_path, '--no-warn-conflicts'
14741474
)
14751475
assert "Successfully installed pkgB-2.0" in result2.stdout, str(result2)
1476+
1477+
1478+
def test_target_install_ignores_distutils_config_install_prefix(script):
1479+
prefix = script.scratch_path / 'prefix'
1480+
Path(os.environ['HOME'], '.pydistutils.cfg').write(textwrap.dedent(
1481+
'''
1482+
[install]
1483+
prefix=%s
1484+
''' % str(prefix)))
1485+
target = script.scratch_path / 'target'
1486+
result = script.pip_install_local('simplewheel', '-t', target)
1487+
assert (
1488+
"Successfully installed simplewheel" in result.stdout and
1489+
(target - script.base_path) in result.files_created and
1490+
(prefix - script.base_path) not in result.files_created
1491+
), str(result)

0 commit comments

Comments
 (0)