From 782c17996e31b5b32695f7db6a887a108a9a6076 Mon Sep 17 00:00:00 2001 From: Alex Myers Date: Mon, 24 Apr 2023 07:57:10 -0500 Subject: [PATCH] pytest: ignore pip warning Avoids failing the test with the pip warning: WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv reported by: @ksedgwic Changelog-None --- tests/test_reckless.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_reckless.py b/tests/test_reckless.py index 42059ec7c..54695d8af 100644 --- a/tests/test_reckless.py +++ b/tests/test_reckless.py @@ -101,7 +101,7 @@ def get_reckless_node(node_factory): def check_stderr(stderr): def output_okay(out): - for warning in ['[notice]', 'npm WARN', 'npm notice']: + for warning in ['[notice]', 'WARNING:', 'npm WARN', 'npm notice']: if out.startswith(warning): return True return False