mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-22 18:22:11 +01:00
gio: Work-around GIO bug in memory monitor tests
Start a session bus in the memory monitor tests, as something in GIO, or python-dbusmock waits on one appearing, blocking the system bus and stopping us from being able to receive signals.
This commit is contained in:
parent
e80d952335
commit
6f39eefb67
@ -37,6 +37,7 @@ try:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(klass):
|
def setUpClass(klass):
|
||||||
klass.start_system_bus()
|
klass.start_system_bus()
|
||||||
|
klass.start_session_bus()
|
||||||
klass.dbus_con = klass.get_dbus(True)
|
klass.dbus_con = klass.get_dbus(True)
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
@ -39,6 +39,7 @@ try:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(klass):
|
def setUpClass(klass):
|
||||||
klass.start_system_bus()
|
klass.start_system_bus()
|
||||||
|
klass.start_session_bus()
|
||||||
klass.dbus_con = klass.get_dbus(True)
|
klass.dbus_con = klass.get_dbus(True)
|
||||||
# Start session bus so that xdg-desktop-portal can run on it
|
# Start session bus so that xdg-desktop-portal can run on it
|
||||||
klass.start_session_bus()
|
klass.start_session_bus()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user