Make more tests pass on Windows.

Also fix a few issues found along the way.

Tests had regressed a lot. Add a lot of tweaks to make most test pass.

R=dpranke@chromium.org
BUG=
TEST=

Review URL: http://codereview.chromium.org/6792060

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@80618 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl.py b/git_cl.py
index d24bf73..f9a008c 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -20,7 +20,7 @@
 import urllib2
 
 try:
-  import readline  # pylint: disable=W0611
+  import readline  # pylint: disable=F0401,W0611
 except ImportError:
   pass