Skip to content

Commit

Permalink
Do not depend on "setup.py install" message in install output
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Jul 25, 2020
1 parent 6c09078 commit 2dfd06f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/functional/test_install_reqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def test_constraints_constrain_to_local(script, data, use_new_resolver):
if use_new_resolver:
assert 'Links are not allowed as constraints' in result.stderr
else:
assert 'Running setup.py install for singlemodule' in result.stdout
assert 'Successfully installed singlemodule' in result.stdout


def test_constrained_to_url_install_same_url(script, data, use_new_resolver):
Expand All @@ -423,7 +423,7 @@ def test_constrained_to_url_install_same_url(script, data, use_new_resolver):
if use_new_resolver:
assert 'Links are not allowed as constraints' in result.stderr
else:
assert ('Running setup.py install for singlemodule'
assert ('Successfully installed singlemodule'
in result.stdout), str(result)


Expand Down Expand Up @@ -531,7 +531,7 @@ def test_install_distribution_full_union(script, data):
to_install = data.packages.joinpath("LocalExtras")
result = script.pip_install_local(
to_install, to_install + "[bar]", to_install + "[baz]")
assert 'Running setup.py install for LocalExtras' in result.stdout
assert 'Successfully installed LocalExtras' in result.stdout
result.did_create(script.site_packages / 'simple')
result.did_create(script.site_packages / 'singlemodule.py')

Expand Down Expand Up @@ -563,7 +563,7 @@ def test_install_distribution_union_with_constraints(
msg = 'Unnamed requirements are not allowed as constraints'
assert msg in result.stderr
else:
assert 'Running setup.py install for LocalExtras' in result.stdout
assert 'Successfully installed LocalExtras' in result.stdout
result.did_create(script.site_packages / 'singlemodule.py')


Expand Down

0 comments on commit 2dfd06f

Please sign in to comment.