@@ -1618,7 +1618,12 @@ def test_install_upgrade_editable_depending_on_other_editable(
16181618def test_install_subprocess_output_handling (
16191619 script : PipTestEnvironment , data : TestData
16201620) -> None :
1621- args = ["install" , os .fspath (data .src .joinpath ("chattymodule" ))]
1621+ args = [
1622+ "install" ,
1623+ "--no-build-isolation" ,
1624+ "--no-cache" ,
1625+ os .fspath (data .src .joinpath ("chattymodule" )),
1626+ ]
16221627
16231628 # Regular install should not show output from the chatty setup.py
16241629 result = script .pip (* args )
@@ -1629,21 +1634,23 @@ def test_install_subprocess_output_handling(
16291634 # Only count examples with sys.argv[1] == egg_info, because we call
16301635 # setup.py multiple times, which should not count as duplicate output.
16311636 result = script .pip (* (args + ["--verbose" ]), expect_stderr = True )
1632- assert 1 == result .stderr .count ("HELLO FROM CHATTYMODULE egg_info" )
1637+ assert 1 == result .stderr .count (
1638+ "HELLO FROM CHATTYMODULE prepare_metadata_for_build_wheel"
1639+ )
1640+ assert 1 == result .stderr .count ("HELLO FROM CHATTYMODULE build_wheel" )
16331641 script .pip ("uninstall" , "-y" , "chattymodule" )
16341642
16351643 # If the install fails, then we *should* show the output... but only once,
16361644 # even if --verbose is given.
1637- result = script .pip (* (args + ["--global-option=--fail" ]), expect_error = True )
1638- # This error is emitted 3 times:
1639- # - by setup.py bdist_wheel
1640- # - by setup.py clean
1641- assert 2 == result .stderr .count ("I DIE, I DIE" )
1645+ result = script .pip (* (args + ["--config-setting=fail=1" ]), expect_error = True )
1646+ assert 1 == result .stderr .count ("I DIE, I DIE" )
1647+ assert 1 == result .stderr .count ("I DIE, I DIE in prepare_metadata_for_build_wheel" )
16421648
16431649 result = script .pip (
1644- * (args + ["--global-option=-- fail" , "--verbose" ]), expect_error = True
1650+ * (args + ["--config-setting= fail=1 " , "--verbose" ]), expect_error = True
16451651 )
1646- assert 2 == result .stderr .count ("I DIE, I DIE" )
1652+ assert 1 == result .stderr .count ("I DIE, I DIE" )
1653+ assert 1 == result .stderr .count ("I DIE, I DIE in prepare_metadata_for_build_wheel" )
16471654
16481655
16491656def test_install_log (script : PipTestEnvironment , data : TestData , tmpdir : Path ) -> None :
0 commit comments