From db1208430e15277e7c850be89a9724431137c8da Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 26 Oct 2022 09:47:17 -0400 Subject: [PATCH] tests: include check for upgrade notice too --- test/test_0_basic.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_0_basic.py b/test/test_0_basic.py index 18969f1a2..0a4a0f046 100644 --- a/test/test_0_basic.py +++ b/test/test_0_basic.py @@ -33,7 +33,9 @@ def test(tmp_path, build_frontend_env, capfd): # Verify pip warning not shown captured = capfd.readouterr() - assert "WARNING: Running pip as the 'root' user can result" not in captured.err + for stream in (captured.err, captured.out): + assert "WARNING: Running pip as the 'root' user can result" not in stream + assert "A new release of pip available" not in stream @pytest.mark.skip(reason="to keep test output clean")