From ae5761cd65b4f32e1b5f72f5b278fe21ab69f1c7 Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev Date: Wed, 6 Apr 2016 10:40:20 +0200 Subject: [PATCH] libsecret: Get rid of PyGI warnings about unspecified versions https://bugzilla.gnome.org/show_bug.cgi?id=687637 --- libsecret/test-py-clear.py | 4 ++++ libsecret/test-py-lookup.py | 4 ++++ libsecret/test-py-store.py | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/libsecret/test-py-clear.py b/libsecret/test-py-clear.py index 5b5ac11..a398381 100644 --- a/libsecret/test-py-clear.py +++ b/libsecret/test-py-clear.py @@ -14,6 +14,10 @@ import sys import unittest +import gi +gi.require_version('MockService', '0') +gi.require_version('Secret', '1') + from gi.repository import MockService as Mock from gi.repository import Secret, GLib diff --git a/libsecret/test-py-lookup.py b/libsecret/test-py-lookup.py index c701043..81519df 100644 --- a/libsecret/test-py-lookup.py +++ b/libsecret/test-py-lookup.py @@ -13,6 +13,10 @@ import unittest +import gi +gi.require_version('MockService', '0') +gi.require_version('Secret', '1') + from gi.repository import MockService as Mock from gi.repository import Secret, GLib diff --git a/libsecret/test-py-store.py b/libsecret/test-py-store.py index 8362d84..d5eb939 100644 --- a/libsecret/test-py-store.py +++ b/libsecret/test-py-store.py @@ -13,6 +13,10 @@ import unittest +import gi +gi.require_version('MockService', '0') +gi.require_version('Secret', '1') + from gi.repository import MockService as Mock from gi.repository import Secret, GLib