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

Unified Diff: appengine/swarming/swarming_bot/bot_code/task_runner_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
Index: appengine/swarming/swarming_bot/bot_code/task_runner_test.py
diff --git a/appengine/swarming/swarming_bot/bot_code/task_runner_test.py b/appengine/swarming/swarming_bot/bot_code/task_runner_test.py
index c5badb4474cc7678c04c9d0239a18114ca9b7d63..9d9d13a25e054d8d49ba6c32ed300fdd7c475133 100755
--- a/appengine/swarming/swarming_bot/bot_code/task_runner_test.py
+++ b/appengine/swarming/swarming_bot/bot_code/task_runner_test.py
@@ -23,6 +23,7 @@ test_env_bot_code.setup_test_env()
# Creates a server mock for functions in net.py.
import net_utils
+from depot_tools import fix_encoding
from utils import file_path
from utils import logging_utils
from utils import subprocess42
@@ -1015,6 +1016,7 @@ class TaskRunnerSmoke(unittest.TestCase):
if __name__ == '__main__':
+ fix_encoding.fix_encoding()
if '-v' in sys.argv:
unittest.TestCase.maxDiff = None
logging_utils.prepare_logging(None)
« no previous file with comments | « appengine/swarming/swarming_bot/bot_code/bot_main_test.py ('k') | appengine/swarming/swarming_bot/main_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698