diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2016-01-04 14:16:55 +0100 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2016-01-04 14:16:55 +0100 |
commit | 19683bcf6ad7be8a3b814d63a8180040dd8090f5 (patch) | |
tree | 394598e3a90aa4f7c57c6300477915c80fcd70cb | |
parent | 410cab8f3d749ad2660cda3ba38b6aece42bf10f (diff) | |
download | udisks-19683bcf6ad7be8a3b814d63a8180040dd8090f5.tar.gz |
integration-test: Explicitly require UDisks 2.0 gir
Fixes warning with current PyGI:
sys:1: PyGIWarning: UDisks was imported without specifying a version first.
Use gi.require_version('UDisks', '2.0') before import to ensure that the right version gets loaded.
-rwxr-xr-x | src/tests/integration-test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/integration-test b/src/tests/integration-test index 6c137b6..d476689 100755 --- a/src/tests/integration-test +++ b/src/tests/integration-test @@ -58,6 +58,10 @@ import signal import argparse import re from glob import glob +import gi + +gi.require_version('UDisks', '2.0') + from gi.repository import GLib, Gio, UDisks # find local test_polkit.py |