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-04-01 19:08:51 +0200
commit8a633f845749ce975d45769a93988d2ce1bf2549 (patch)
tree8100151141e9c7f5f95607bc5334d7299087ca6d
parent0b35ce09c94ef0482fe9d70d0fb2df45c7292906 (diff)
downloadpygobject-8a633f845749ce975d45769a93988d2ce1bf2549.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