summaryrefslogtreecommitdiff
path: root/tests/x11session.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/x11session.py')
-rw-r--r--tests/x11session.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/x11session.py b/tests/x11session.py
index ff2d389c..7fb0b834 100644
--- a/tests/x11session.py
+++ b/tests/x11session.py
@@ -94,7 +94,10 @@ class X11SessionTestCase(DBusTestCase):
klass.X_display = display
# Export information into our environment for tests to use
os.environ['DISPLAY'] = ":%d" % klass.X_display
- os.environ['WAYLAND'] = ''
+ if 'GNOME_SETUP_DISPLAY' in os.environ:
+ del os.environ['GNOME_SETUP_DISPLAY']
+ if 'WAYLAND_DISPLAY' in os.environ:
+ del os.environ['WAYLAND_DISPLAY']
# Server should still be up and running at this point
assert klass.xorg.poll() is None