[meld] test: Try to enforce specific introspection requirements



commit 614764cde1d47708003a074fbabd74162283e566
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Aug 8 11:01:27 2021 +1000

    test: Try to enforce specific introspection requirements
    
    This is mostly targeted at GTK, since our tests absolutely do not pass
    under GTK 4.0.

 test/__init__.py | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
---
diff --git a/test/__init__.py b/test/__init__.py
index e69de29b..8286af84 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -0,0 +1,16 @@
+
+TEST_REQUIRES = {
+    "GLib": "2.0",
+    "Gtk": "3.0",
+    "GtkSource": "4",
+}
+
+
+def enforce_requires():
+    import gi
+
+    for namespace, version in TEST_REQUIRES.items():
+        gi.require_version(namespace, version)
+
+
+enforce_requires()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]