From fd68558eecb67375dda73b14ad100a69b954bb8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Fri, 14 Oct 2022 17:24:57 +0400 Subject: [PATCH] tests/gobject-query.py: make it work on msys2/win32 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For unclear reasons, universal_newlines=True doesn't seem to set the text encoding correctly. Even if I set only encoding='utf-8', the test fails. The combination here works for me, \o/. Signed-off-by: Marc-André Lureau --- gobject/tests/gobject-query.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gobject/tests/gobject-query.py b/gobject/tests/gobject-query.py index 0325f70d2..84370a151 100644 --- a/gobject/tests/gobject-query.py +++ b/gobject/tests/gobject-query.py @@ -69,7 +69,8 @@ class TestGobjectQuery(unittest.TestCase): stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env, - universal_newlines=True, + text=True, + encoding='utf-8', ) info.check_returncode() out = info.stdout.strip()