diff options
Diffstat (limited to 'tests/__init__.py')
-rw-r--r-- | tests/__init__.py | 6 |
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 |