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

Unified Diff: appengine/components/tests/endpoints_smoke_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 | « no previous file | appengine/components/tool_support/local_app.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/components/tests/endpoints_smoke_test.py
diff --git a/appengine/components/tests/endpoints_smoke_test.py b/appengine/components/tests/endpoints_smoke_test.py
index 6b91a9703a2420124bafddc7605962a314df439f..e852a6f3ac591eb90915b46d8ef6992d7a59016f 100755
--- a/appengine/components/tests/endpoints_smoke_test.py
+++ b/appengine/components/tests/endpoints_smoke_test.py
@@ -11,13 +11,17 @@ methods.
import unittest
import os
-
-from tool_support import gae_sdk_utils
-from tool_support import local_app
-
+import sys
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
TEST_APP_DIR = os.path.join(THIS_DIR, 'test_endpoints_app')
+CLIENT_DIR = os.path.join(
+ os.path.dirname(os.path.dirname(os.path.dirname(THIS_DIR))), 'client')
+sys.path.insert(0, CLIENT_DIR)
+
+from third_party.depot_tools import fix_encoding
+from tool_support import gae_sdk_utils
+from tool_support import local_app
class CloudEndpointsSmokeTest(unittest.TestCase):
@@ -92,5 +96,6 @@ class CloudEndpointsSmokeTest(unittest.TestCase):
if __name__ == '__main__':
+ fix_encoding.fix_encoding()
gae_sdk_utils.setup_gae_env()
unittest.main()
« no previous file with comments | « no previous file | appengine/components/tool_support/local_app.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698