File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1515,12 +1515,18 @@ def test_install_subprocess_output_handling(
1515
1515
# If the install fails, then we *should* show the output... but only once,
1516
1516
# even if --verbose is given.
1517
1517
result = script .pip (* (args + ["--global-option=--fail" ]), expect_error = True )
1518
- assert 1 == result .stderr .count ("I DIE, I DIE" )
1518
+ # This error is emitted 3 times:
1519
+ # - by setup.py bdist_wheel
1520
+ # - by setup.py clean
1521
+ # - by setup.py install which is used as fallback when setup.py bdist_wheel failed
1522
+ # Before, it failed only once because it attempted only setup.py install.
1523
+ # TODO update this when we remove the last setup.py install code path.
1524
+ assert 3 == result .stderr .count ("I DIE, I DIE" )
1519
1525
1520
1526
result = script .pip (
1521
1527
* (args + ["--global-option=--fail" , "--verbose" ]), expect_error = True
1522
1528
)
1523
- assert 1 == result .stderr .count ("I DIE, I DIE" )
1529
+ assert 3 == result .stderr .count ("I DIE, I DIE" )
1524
1530
1525
1531
1526
1532
def test_install_log (script : PipTestEnvironment , data : TestData , tmpdir : Path ) -> None :
You can’t perform that action at this time.
0 commit comments