Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: client/tests/swarming_test.py

Issue 1390773002: Add an assert to ensure UTF-8 locale when handling file paths. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: More fixes Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/tests/run_isolated_test.py ('k') | client/tests/trace_inputs_smoke_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/swarming_test.py
diff --git a/client/tests/swarming_test.py b/client/tests/swarming_test.py
index 39eb7522a08d7a0113bb2fc9dad5354e88f2e287..df60ec0a7676245729b9e6da1115e891b6c92107 100755
--- a/client/tests/swarming_test.py
+++ b/client/tests/swarming_test.py
@@ -26,6 +26,7 @@ import isolateserver
import swarming
import test_utils
+from depot_tools import fix_encoding
from utils import file_path
from utils import logging_utils
from utils import tools
@@ -1212,6 +1213,7 @@ class TestCommandBot(NetTestCase):
if __name__ == '__main__':
+ fix_encoding.fix_encoding()
logging.basicConfig(
level=logging.DEBUG if '-v' in sys.argv else logging.CRITICAL)
if '-v' in sys.argv:
« no previous file with comments | « client/tests/run_isolated_test.py ('k') | client/tests/trace_inputs_smoke_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698