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/net_test.py

Issue 2093593002: luci-py: Making __file__ usage unicode safe. (Closed) Base URL: https://github.com/luci/luci-py.git@master
Patch Set: Small fixes. Created 4 years, 6 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/lru_test.py ('k') | client/tests/net_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/net_test.py
diff --git a/client/tests/net_test.py b/client/tests/net_test.py
index f8410f3187cd29ff6fe23f21511f513e22567876..1fcbbf81b0485e74ce76e954b00b1704e349a54a 100755
--- a/client/tests/net_test.py
+++ b/client/tests/net_test.py
@@ -14,7 +14,8 @@ import os
import sys
import unittest
-ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(
+ __file__.decode(sys.getfilesystemencoding()))))
sys.path.insert(0, ROOT_DIR)
sys.path.insert(0, os.path.join(ROOT_DIR, 'third_party'))
« no previous file with comments | « client/tests/lru_test.py ('k') | client/tests/net_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698