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

Unified Diff: client/tests/logging_utils_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/large_test.py ('k') | client/tests/lru_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/logging_utils_test.py
diff --git a/client/tests/logging_utils_test.py b/client/tests/logging_utils_test.py
index c3caacad47e820ac0e676487c185707353016918..1232f5ef37c48a2d3fb8fb05005a848b034968b1 100755
--- a/client/tests/logging_utils_test.py
+++ b/client/tests/logging_utils_test.py
@@ -11,7 +11,7 @@ import tempfile
import unittest
import re
-THIS_FILE = os.path.abspath(__file__)
+THIS_FILE = os.path.abspath(__file__.decode(sys.getfilesystemencoding()))
sys.path.insert(0, os.path.dirname(os.path.dirname(THIS_FILE)))
from third_party.depot_tools import fix_encoding
« no previous file with comments | « client/tests/large_test.py ('k') | client/tests/lru_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698