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
This commit is contained in:
Alex Myers
2023-04-24 07:57:10 -05:00
committed by ShahanaFarooqui
parent 8163bfc7bd
commit 782c17996e

View File

@@ -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