on xenial help sign in
Make it py2 compatible.
commit5ad6b8d294d9e894e0ba974748b0390d13de56f2 authorLeo Arias <leo.arias@canonical.com> dateMon 19 Jan 2015, 14:11 (12 years ago) parent2bac421
2 files changed+4−4
tests/autopilot/unity8/fixture_setup.py+3−3 tests/autopilot/unity8/indicators/tests/test_indicators.py+1−1
tests/autopilot/unity8/fixture_setup.py+3−3
@@ -66,14 +66,14 @@ class LaunchDashApp(fixtures.Fixture):
6666 process_helpers.stop_job('unity8-dash')
6767
6868
69−class IndicatorDisplayRotationLock(fixtures.Fixture):
69+class DisplayRotationLock(fixtures.Fixture):
7070
7171 def __init__(self, enable):
72− super().__init__()
72+ super(self, DisplayRotationLock).__init__()
7373 self.enable = enable
7474
7575 def setUp(self):
76− super().setUp()
76+ super(self, DisplayRotationLock).setUp()
7777 original_state = self._is_rotation_lock_enabled()
7878 if self.enable != original_state:
7979 self.addCleanup(self._set_rotation_lock, original_state)
tests/autopilot/unity8/indicators/tests/test_indicators.py+1−1
@@ -112,7 +112,7 @@ class DisplayIndicatorTestCase(IndicatorTestCase):
112112 def test(self):
113113 display_indicator = indicators.DisplayIndicator(self.main_window)
114114 display_indicator_page = display_indicator.open()
115− fixture = fixture_setup.IndicatorDisplayRotationLock(False)
115+ fixture = fixture_setup.DisplayRotationLock(False)
116116
117117 display_indicator_page.unlock_rotation()
118118 self.assertEqual(fixture._is_rotation_lock_enabled(), False)