on xenial help sign in
Use unittest.skipIf
commit24a102b83129331307ddc68ef8725672b7f10a52 authorMichael Terry <michael.terry@canonical.com> dateFri 21 Mar 2014, 11:17 (13 years ago) parent0d3e495
1 file changed+2−3
tests/autopilot/unity8/shell/tests/test_system_integration.py+2−3
tests/autopilot/unity8/shell/tests/test_system_integration.py+2−3
@@ -20,6 +20,7 @@
2020"""Tests for system integration."""
2121
2222import subprocess
23+import unittest
2324
2425from autopilot import platform
2526from unity8.shell.emulators import UnityEmulatorBase
@@ -31,10 +32,8 @@ class SystemIntegrationTests(UnityTestCase):
3132
3233 scenarios = _get_device_emulation_scenarios()
3334
35+ @unittest.skipIf(platform.model() == "Desktop", "Test is broken on otto, see bug 1281634.")
3436 def test_networkmanager_integration(self):
35− if platform.model() == 'Desktop':
36− self.skipTest("Test is broken on otto, see bug 1281634.")
37−
3837 self.launch_unity()
3938
4039 # invoke policykit to check permissions