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

Unified Diff: tests/watchlists_unittest.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/trychange_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/watchlists_unittest.py
diff --git a/tests/watchlists_unittest.py b/tests/watchlists_unittest.py
index 7721f8471b2f9be64bb4c0ce4153c7de38b74cfd..e72bb8babd50269318474de7f33df1e767f78129 100755
--- a/tests/watchlists_unittest.py
+++ b/tests/watchlists_unittest.py
@@ -5,8 +5,12 @@
"""Unit tests for watchlists.py."""
-# pylint is too confused.
-# pylint: disable=E1103,E1120,W0212,W0403
+# pylint: disable=E1103,E1120,W0212
+
+import os
+import sys
+
+sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import super_mox
import watchlists
« no previous file with comments | « tests/trychange_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698