summaryrefslogtreecommitdiff
path: root/tests/__init__.py
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-08-19 15:08:54 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2018-08-19 15:08:54 +0200
commit492dd2d24470faf4044ac560747aa9783ec2c7a6 (patch)
treecf9d0cd2747e26fad186cfc4d88d1ca02e157214 /tests/__init__.py
parentd9ddad7bcac86d37a9010c8cd529a0e6ca1a9f48 (diff)
downloadpygobject-492dd2d24470faf4044ac560747aa9783ec2c7a6.tar.gz
tests: force Adwaita as gtk theme
The Ubuntu 18.10 theme has css errors which make the gtk tests fail.
Diffstat (limited to 'tests/__init__.py')
-rw-r--r--tests/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
index 1611db33..1ab73f0d 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -89,6 +89,9 @@ def init_test_environ():
os.environ['GSETTINGS_SCHEMA_DIR'] = tests_builddir
os.environ['G_FILENAME_ENCODING'] = 'UTF-8'
+ # Force the default theme so broken themes don't affect the tests
+ os.environ['GTK_THEME'] = 'Adwaita'
+
import gi
gi.require_version("GIRepository", "2.0")
from gi.repository import GIRepository