diff options
| author | Łukasz 'sil2100' Zemczak <lukasz.zemczak@canonical.com> | 2012-10-31 18:05:37 +0100 |
|---|---|---|
| committer | Łukasz 'sil2100' Zemczak <lukasz.zemczak@canonical.com> | 2012-10-31 18:05:37 +0100 |
| commit | 42a0788b629fad38356bb980a76b278f9ca14355 (patch) | |
| tree | fd34e41d2a1c13ed7b992cf0d6db8c14d6dde1f6 /tests | |
| parent | 871b4f1dbd9a2e88b596a3c60da480a9cd1bd069 (diff) | |
After tearing down unity logging, open with encoding UTF-8. Fixes some crashes caused by different locale
(bzr r2873.1.1)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/autopilot/unity/tests/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/autopilot/unity/tests/__init__.py b/tests/autopilot/unity/tests/__init__.py index e882cff94..7d0d873ce 100644 --- a/tests/autopilot/unity/tests/__init__.py +++ b/tests/autopilot/unity/tests/__init__.py @@ -215,7 +215,7 @@ class UnityTestCase(AutopilotTestCase): reset_logging() except DBusException: pass - with open(self._unity_log_file_name) as unity_log: + with open(self._unity_log_file_name, encoding='utf-8') as unity_log: self.addDetail('unity-log', text_content(unity_log.read())) os.remove(self._unity_log_file_name) self._unity_log_file_name = "" |
