summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2022-03-27 09:29:50 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2022-03-27 09:29:50 +0200
commitafac33584673ca9ac1aad1c8763bdec5ddc12d7b (patch)
tree58beeccf38e0c580b300c23817f191355940036f
parent5465ff577c4b55979ce424f1811257ac92f78bcd (diff)
downloadgobject-introspection-afac33584673ca9ac1aad1c8763bdec5ddc12d7b.tar.gz
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.
-rw-r--r--tests/__init__.py6
1 files changed, 4 insertions, 2 deletions
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