From afac33584673ca9ac1aad1c8763bdec5ddc12d7b Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sun, 27 Mar 2022 09:29:50 +0200 Subject: tests: disable fatal-warnings fatal-criticals on Windows If it triggers it creates a blocking GUI dialog without any helpful output. I can't reproduce the cause on my local machine, just on the CI server, so jsut disable this for now. --- tests/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/__init__.py b/tests/__init__.py index 125f2319..2bcb52e7 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -44,8 +44,10 @@ def init_test_environ(): # force untranslated messages, as we check for them in some tests os.environ['LC_MESSAGES'] = 'C' os.environ['G_DEBUG'] = 'fatal-warnings fatal-criticals' - if sys.platform == "darwin": - # gtk 3.22 has warnings and ciriticals on OS X, ignore for now + if sys.platform == "darwin" or os.name == "nt": + # gtk 3.22 has warnings and ciriticals on OS X, ignore for now. + # On Windows glib will create an error dialog which will block tests + # so it's never a good idea there to make things fatal. os.environ['G_DEBUG'] = '' # make Gio able to find our gschemas.compiled in tests/. This needs to be set -- cgit v1.2.1