on xenial help sign in
Explicitly import model, eliminate phantom self.model.
commitb1a7ba36a89360a6eff16e64dabd7385bfd25ffe authorAllan LeSage <allan.lesage@canonical.com> dateTue 3 Dec 2013, 20:06 (13 years ago) parent996643d
1 file changed+2−2
tests/autopilot/unity8/indicators/tests/test_indicators.py+2−2
tests/autopilot/unity8/indicators/tests/test_indicators.py+2−2
@@ -19,7 +19,7 @@
1919
2020from __future__ import absolute_import
2121
22−import autopilot.platform
22+from autopilot import platform
2323
2424from unity8.indicators.emulators.widget import DefaultIndicatorWidget
2525from unity8.process_helpers import unlock_unity
@@ -39,7 +39,7 @@ class IndicatorTestCase(UnityTestCase):
3939 ]
4040
4141 def setUp(self):
42− if self.model() == "Desktop":
42+ if platform.model() == "Desktop":
4343 self.skipTest("Test cannot be run on the desktop.")
4444 super(IndicatorTestCase, self).setUp()
4545