Fix import warning
/home/tsdgeos/phablet/unity8/unity8/tests/autopilot/unity8/shell/__init__.py:28: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
commit8c9102abd9afc2ca30e37b6484197bc66554f900
authorAlbert Astals Cid <albert.astals@canonical.com>
dateMon 24 Oct 2016, 16:38 (10 years ago)
parent29c2ac2
tests/autopilot/unity8/shell/__init__.py+2
@@ -25,6 +25,8 @@ from functools import wraps
2525import ubuntuuitoolkit
2626from autopilot import logging as autopilot_logging
2727from autopilot import input
28+import gi
29+gi.require_version('Notify', '0.7')
2830from gi.repository import Notify
2931
3032from unity8 import (