Skip to content

Commit fcf0e35

Browse files
author
Noah Gorny
committed
tests: functional: Add uninstall test for --install-option bug
1 parent a6cde8c commit fcf0e35

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

tests/functional/test_uninstall.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,31 @@ def test_uninstall_from_reqs_file(script, tmpdir):
411411
)
412412

413413

414+
@pytest.mark.network
415+
def test_uninstall_per_setup_options(script):
416+
"""
417+
Check that uninstall works with per-setup options are specified
418+
"""
419+
script.scratch_path.joinpath("test-req.txt").write_text(
420+
textwrap.dedent("""
421+
six --install-option="-v"
422+
""")
423+
)
424+
425+
result = script.pip('install', '-r', 'test-req.txt')
426+
result2 = script.pip('uninstall', '-r', 'test-req.txt', '-y')
427+
assert_all_changes(
428+
result,
429+
result2,
430+
[
431+
script.venv / 'build',
432+
script.venv / 'src',
433+
script.scratch / 'test-req.txt',
434+
script.site_packages / 'easy-install.pth',
435+
],
436+
)
437+
438+
414439
def test_uninstallpathset_no_paths(caplog):
415440
"""
416441
Test UninstallPathSet logs notification when there are no paths to

0 commit comments

Comments
 (0)