summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/twisted/servicetest.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/twisted/servicetest.py b/tests/twisted/servicetest.py
index 36ff6683..bf22beb7 100644
--- a/tests/twisted/servicetest.py
+++ b/tests/twisted/servicetest.py
@@ -311,7 +311,14 @@ class IteratingEventQueue(BaseEventQueue):
bus.add_message_filter(self._dbus_dev_null)
return
- bus.add_match_string("") # eavesdrop, like dbus-monitor does
+ try:
+ # for dbus > 1.5
+ bus.add_match_string("eavesdrop=true")
+ except dbus.DBusException:
+ pass
+
+ # for dbus 1.4
+ bus.add_match_string("")
bus.add_message_filter(self._dbus_filter_bound_method)