fix issue seen during image testing in system_integration test: 'TypeError: Can't convert 'bytes' object to str implicitly'
commit7a11663f490e24c5ccddeef5af46e4054675dc18
authorAlexander Sack <asac@ubuntu.com>
dateWed 9 Apr 2014, 19:31 (13 years ago)
parente9ab822
tests/autopilot/unity8/shell/tests/test_system_integration.py+1−1
@@ -37,5 +37,5 @@ class SystemIntegrationTests(UnityTestCase):
3737 self.launch_unity()
3838
3939 # invoke policykit to check permissions
40− pid = subprocess.check_output("pidof -s unity8", shell=True)
40+ pid = subprocess.check_output(["pidof", "-s", "unity8"], universal_newlines=True)
4141 subprocess.check_call("pkcheck --action-id org.freedesktop.NetworkManager.enable-disable-network --process " + pid, shell=True)