From 8a972972ba33c2ea331ede351b7649876b352c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 24 Sep 2021 14:49:04 +0200 Subject: [PATCH] Fix "invalid UTF-8" test failure on Windows On Windows an extra line "exec: Process pid=... exited with status code 0" is reported after terminating the subprocess. This isn't relevant for the `text_exec_invalid_utf` test, so the extra line is just ignored. No functional changes. --- tests/test_runner.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_runner.py b/tests/test_runner.py index 4dffdae..31c5345 100644 --- a/tests/test_runner.py +++ b/tests/test_runner.py @@ -145,7 +145,10 @@ class ExecCommandTest(AbstractCommandTest): ), call(f"exec: TERMinating subprocess pid={pid}"), call(decode_err), - ] + ], + # Pass any_order=True to allow for some extra line reported on Windows + # but not on Linux ("exec: Process pid=... exited with status code 0") + any_order=True, ) # The update should NOT contain a new task status -- that is left to the Worker.