diff --git a/keyring/tests/test_backend.py b/keyring/tests/test_backend.py
index <HASH>..<HASH> 100644
--- a/keyring/tests/test_backend.py
+++ b/keyring/tests/test_backend.py
@@ -154,7 +154,7 @@ def is_dbus_supported():
         __import__('dbus')
     except ImportError:
         return False
-    return True
+    return 'DISPLAY' in os.environ
 
 def is_keyczar_supported():
     try:
Skip dbus tests if no 'DISPLAY' environment variable is set, avoiding failures to initialize dbus without a suitable X<I> session.