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

Unified Diff: net/tools/testserver/testserver.py

Issue 74253002: Stop using third_party\python_26 for many tests. (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Created 7 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
Index: net/tools/testserver/testserver.py
diff --git a/net/tools/testserver/testserver.py b/net/tools/testserver/testserver.py
index e0317e8868524bece9b141f20b74a02c3faae673..62745d6d21c734c71a12fd25d85b47fa4a474409 100755
--- a/net/tools/testserver/testserver.py
+++ b/net/tools/testserver/testserver.py
@@ -35,6 +35,16 @@ import urllib
import urlparse
import zlib
+# Ignore deprecation warnings, they make our output more cluttered.
+# TODO(maruel): warnings.filterwarnings("ignore", category=DeprecationWarning)
+
+BASE_DIR = os.path.dirname(os.path.abspath(__file__))
+ROOT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(BASE_DIR)))
+
+# Append these paths at the the end of sys.path so the system lib will be used by default.
Paweł Hajdan Jr. 2013/11/15 19:34:44 nit: 80 chars
+sys.path.append(os.path.join(ROOT_DIR, 'third_party', 'pyftpdlib', 'src'))
+sys.path.append(os.path.join(ROOT_DIR, 'third_party', 'tlslite'))
Paweł Hajdan Jr. 2013/11/15 19:34:44 The tests don't work with system tlslite. We depen
+
import echo_message
import pyftpdlib.ftpserver
import testserver_base

Powered by Google App Engine
This is Rietveld 408576698