[pygobject/pygobject-3-42] tests: disable fatal-warnings fatal-criticals on Windows



commit 8a633f845749ce975d45769a93988d2ce1bf2549
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Sun Mar 27 09:29:50 2022 +0200

    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(-)
---
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]