Skip to content

Commit 57772ce

Browse files
committed
Do not depend on "setup.py install" message in install output
1 parent 4a1415e commit 57772ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/functional/test_install_reqs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def test_constraints_constrain_to_local(script, data, use_new_resolver):
405405
if use_new_resolver:
406406
assert 'Links are not allowed as constraints' in result.stderr
407407
else:
408-
assert 'Running setup.py install for singlemodule' in result.stdout
408+
assert 'Successfully installed singlemodule' in result.stdout
409409

410410

411411
def test_constrained_to_url_install_same_url(script, data, use_new_resolver):
@@ -421,7 +421,7 @@ def test_constrained_to_url_install_same_url(script, data, use_new_resolver):
421421
if use_new_resolver:
422422
assert 'Links are not allowed as constraints' in result.stderr
423423
else:
424-
assert ('Running setup.py install for singlemodule'
424+
assert ('Successfully installed singlemodule'
425425
in result.stdout), str(result)
426426

427427

@@ -529,7 +529,7 @@ def test_install_distribution_full_union(script, data):
529529
to_install = data.packages.joinpath("LocalExtras")
530530
result = script.pip_install_local(
531531
to_install, to_install + "[bar]", to_install + "[baz]")
532-
assert 'Running setup.py install for LocalExtras' in result.stdout
532+
assert 'Successfully installed LocalExtras' in result.stdout
533533
result.did_create(script.site_packages / 'simple')
534534
result.did_create(script.site_packages / 'singlemodule.py')
535535

@@ -561,7 +561,7 @@ def test_install_distribution_union_with_constraints(
561561
msg = 'Unnamed requirements are not allowed as constraints'
562562
assert msg in result.stderr
563563
else:
564-
assert 'Running setup.py install for LocalExtras' in result.stdout
564+
assert 'Successfully installed LocalExtras' in result.stdout
565565
result.did_create(script.site_packages / 'singlemodule.py')
566566

567567

0 commit comments

Comments
 (0)