Merge branch 'w32-tests' into 'main'

Various win32 test fixes

See merge request GNOME/glib!2952
This commit is contained in:
Philip Withnall
2022-10-17 09:53:44 +00:00
6 changed files with 133 additions and 102 deletions

View File

@@ -55,12 +55,6 @@ class TestGobjectQuery(unittest.TestCase):
def runGobjectQuery(self, *args):
argv = [self.__gobject_query]
# shebang lines are not supported on native
# Windows consoles
if os.name == "nt":
argv.insert(0, sys.executable)
argv.extend(args)
print("Running:", argv)
@@ -75,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()