From 62653ddfab218faa0bb8322494173373e470bed9 Mon Sep 17 00:00:00 2001 From: Yanick Fratantonio Date: Thu, 23 Jan 2025 14:25:26 +0000 Subject: [PATCH] python: make cli tester more lenient about stderr --- python/scripts/run_quick_test_magika_cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/scripts/run_quick_test_magika_cli.py b/python/scripts/run_quick_test_magika_cli.py index 6a02764a..0e29d868 100755 --- a/python/scripts/run_quick_test_magika_cli.py +++ b/python/scripts/run_quick_test_magika_cli.py @@ -66,7 +66,8 @@ def main(client_path: Optional[Path]) -> None: print(f"stderr:\n{p.stderr}\n" + "-" * 40) sys.exit(1) - assert p.stderr == "" + if p.stderr != "": + print(f"WARNING: p.stderr not empty: {p.stderr}") with_error = False lines = p.stdout.split("\n")