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

Unified Diff: tests/checkout_test.py

Issue 8508017: Standardize the sys.path fix up and fix a few pylint warnings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Previous patchset was broken Created 9 years, 1 month 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 | « tests/breakpad_unittest.py ('k') | tests/fix_encoding_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/checkout_test.py
diff --git a/tests/checkout_test.py b/tests/checkout_test.py
index 1428bd7308729ba54d716815b38f32925953a3e7..5de734a0088ac597770c73ed804ce2cb77375d0e 100755
--- a/tests/checkout_test.py
+++ b/tests/checkout_test.py
@@ -14,8 +14,7 @@ import unittest
from xml.etree import ElementTree
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
-BASE_DIR = os.path.join(ROOT_DIR, '..')
-sys.path.insert(0, BASE_DIR)
+sys.path.insert(0, os.path.dirname(ROOT_DIR))
import checkout
import patch
« no previous file with comments | « tests/breakpad_unittest.py ('k') | tests/fix_encoding_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698