mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
tests/gobject-query.py: make it work on msys2/win32
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 <marcandre.lureau@redhat.com>
This commit is contained in:
parent
fdfe94fb16
commit
8c0fa77a71
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user