mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
tests: Skip MemoryMonitor test if GObject-Introspection is too old
Distributions will likely want to update GLib before GObject-Introspection, to avoid circular dependencies. Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
committed by
Simon McVittie
parent
369626e310
commit
fdbd9ed7f7
@@ -40,6 +40,12 @@ class TestLowMemoryMonitorPortal(dbusmock.DBusTestCase):
|
||||
klass.start_session_bus()
|
||||
|
||||
def setUp(self):
|
||||
try:
|
||||
Gio.MemoryMonitor
|
||||
except AttributeError:
|
||||
raise unittest.SkipTest('Low memory monitor not in '
|
||||
'introspection data. Requires '
|
||||
'GObject-Introspection ≥ 1.63.2')
|
||||
try:
|
||||
(self.p_mock, self.obj_lmm) = self.spawn_server_template(
|
||||
'low_memory_monitor', {}, stdout=subprocess.PIPE)
|
||||
|
Reference in New Issue
Block a user