@@ -1613,7 +1613,12 @@ def test_install_upgrade_editable_depending_on_other_editable(
1613
1613
def test_install_subprocess_output_handling (
1614
1614
script : PipTestEnvironment , data : TestData
1615
1615
) -> None :
1616
- args = ["install" , os .fspath (data .src .joinpath ("chattymodule" ))]
1616
+ args = [
1617
+ "install" ,
1618
+ "--no-build-isolation" ,
1619
+ "--no-cache" ,
1620
+ os .fspath (data .src .joinpath ("chattymodule" )),
1621
+ ]
1617
1622
1618
1623
# Regular install should not show output from the chatty setup.py
1619
1624
result = script .pip (* args )
@@ -1624,21 +1629,23 @@ def test_install_subprocess_output_handling(
1624
1629
# Only count examples with sys.argv[1] == egg_info, because we call
1625
1630
# setup.py multiple times, which should not count as duplicate output.
1626
1631
result = script .pip (* (args + ["--verbose" ]), expect_stderr = True )
1627
- assert 1 == result .stderr .count ("HELLO FROM CHATTYMODULE egg_info" )
1632
+ assert 1 == result .stderr .count (
1633
+ "HELLO FROM CHATTYMODULE prepare_metadata_for_build_wheel"
1634
+ )
1635
+ assert 1 == result .stderr .count ("HELLO FROM CHATTYMODULE build_wheel" )
1628
1636
script .pip ("uninstall" , "-y" , "chattymodule" )
1629
1637
1630
1638
# If the install fails, then we *should* show the output... but only once,
1631
1639
# even if --verbose is given.
1632
- result = script .pip (* (args + ["--global-option=--fail" ]), expect_error = True )
1633
- # This error is emitted 3 times:
1634
- # - by setup.py bdist_wheel
1635
- # - by setup.py clean
1636
- assert 2 == result .stderr .count ("I DIE, I DIE" )
1640
+ result = script .pip (* (args + ["--config-setting=fail=1" ]), expect_error = True )
1641
+ assert 1 == result .stderr .count ("I DIE, I DIE" )
1642
+ assert 1 == result .stderr .count ("I DIE, I DIE in prepare_metadata_for_build_wheel" )
1637
1643
1638
1644
result = script .pip (
1639
- * (args + ["--global-option=-- fail" , "--verbose" ]), expect_error = True
1645
+ * (args + ["--config-setting= fail=1 " , "--verbose" ]), expect_error = True
1640
1646
)
1641
- assert 2 == result .stderr .count ("I DIE, I DIE" )
1647
+ assert 1 == result .stderr .count ("I DIE, I DIE" )
1648
+ assert 1 == result .stderr .count ("I DIE, I DIE in prepare_metadata_for_build_wheel" )
1642
1649
1643
1650
1644
1651
def test_install_log (script : PipTestEnvironment , data : TestData , tmpdir : Path ) -> None :
0 commit comments