diff options
author | Ondrej Holy <oholy@redhat.com> | 2016-05-24 12:16:13 +0200 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2016-05-24 12:16:13 +0200 |
commit | 6d773947fab53a2a29cc43a38dab86754a8963fa (patch) | |
tree | e74562e117c1b63b9018a9d98443e1c4ec35f459 /test | |
parent | a1c75560eff12c28f6b30d201e5c877e22116ef4 (diff) | |
download | gvfs-6d773947fab53a2a29cc43a38dab86754a8963fa.tar.gz |
tests: Explicitly require version for GUMockdev to avoid warning
This avoids the following deprecation warning:
PyGIWarning: UMockdev was imported without specifying a version first.
Diffstat (limited to 'test')
-rwxr-xr-x | test/gvfs-test | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/gvfs-test b/test/gvfs-test index 1d299d73..8a4ada1d 100755 --- a/test/gvfs-test +++ b/test/gvfs-test @@ -38,6 +38,8 @@ from glob import glob from gi.repository import GLib, Gio try: + import gi + gi.require_version('UMockdev', '1.0') from gi.repository import UMockdev have_umockdev = subprocess.call(['which', 'umockdev-wrapper'], stdout=subprocess.PIPE) == 0 # needs >= 0.2.10 |