on xenial help sign in
More universal_newlines
37ae5d8Dimitri John Ledkov
tests/autopilot/unity8/__init__.py+1−1
@@ -131,7 +131,7 @@ def _get_xdg_upstart_env():
131 "get-env",
131 "get-env",
132 "--global",
132 "--global",
133 "XDG_DATA_DIRS"
133 "XDG_DATA_DIRS"
134− ]).rstrip()
134+ ], universal_newlines=True).rstrip()
135 except subprocess.CalledProcessError:
135 except subprocess.CalledProcessError:
136 return None
136 return None
137
137
tests/autopilot/unity8/process_helpers.py+1−1
@@ -142,7 +142,7 @@ def _get_unity_status():
142 '/sbin/initctl',
142 '/sbin/initctl',
143 'status',
143 'status',
144 'unity8'
144 'unity8'
145− ])
145+ ], universal_newlines=True)
146 except subprocess.CalledProcessError as e:
146 except subprocess.CalledProcessError as e:
147 raise CannotAccessUnity("Unable to get unity's status: %s" % str(e))
147 raise CannotAccessUnity("Unable to get unity's status: %s" % str(e))
148
148