From 089ec3ffb72243eacdc42fe7612f195d5f8e54fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 14 Dec 2022 20:00:43 +0100 Subject: [PATCH] Fixup tests on Windows, use UTF-8 for subprocess --- tests/unit/session/test_parallel.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/unit/session/test_parallel.py b/tests/unit/session/test_parallel.py index e08ef1f0c..3fa2331ba 100644 --- a/tests/unit/session/test_parallel.py +++ b/tests/unit/session/test_parallel.py @@ -272,8 +272,7 @@ def invoke_tox_in_thread(thread_name, result_json): # needs to be process to have it's own stdout invoke_result[thread_name] = subprocess.check_output( [sys.executable, "-m", "tox", "-p", "all", "--result-json", str(result_json)], - universal_newlines=True, - ) + ).decode("utf-8") except subprocess.CalledProcessError as exception: invoke_result[thread_name] = exception