mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
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:
committed by
ShahanaFarooqui
parent
8163bfc7bd
commit
782c17996e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user