Commit dd5e09a1 authored by Andrii Shyshkalov's avatar Andrii Shyshkalov Committed by Commit Bot

git cl: get rid of Rietveld's upload.py import.

R=ajp, ehmaldonado

Change-Id: I9c9f5e0f8ef41c0f6a00faa67acf0cf516290f09
Reviewed-on: https://chromium-review.googlesource.com/c/1345272Reviewed-by: 's avatarEdward Lesmes <ehmaldonado@chromium.org>
Commit-Queue: Andrii Shyshkalov <tandrii@chromium.org>
parent dc3adea9
...@@ -44,7 +44,6 @@ except ImportError: ...@@ -44,7 +44,6 @@ except ImportError:
from third_party import colorama from third_party import colorama
from third_party import httplib2 from third_party import httplib2
from third_party import upload
import auth import auth
import checkout import checkout
import clang_format import clang_format
...@@ -4059,9 +4058,6 @@ def get_cl_statuses(changes, fine_grained, max_processes=None): ...@@ -4059,9 +4058,6 @@ def get_cl_statuses(changes, fine_grained, max_processes=None):
See GetStatus() for a list of possible statuses. See GetStatus() for a list of possible statuses.
""" """
# Silence upload.py otherwise it becomes unwieldy.
upload.verbosity = 0
if not changes: if not changes:
raise StopIteration() raise StopIteration()
......
...@@ -647,7 +647,6 @@ class TestGitCl(TestCase): ...@@ -647,7 +647,6 @@ class TestGitCl(TestCase):
self.mock(git_cl.presubmit_support, 'DoPresubmitChecks', PresubmitMock) self.mock(git_cl.presubmit_support, 'DoPresubmitChecks', PresubmitMock)
self.mock(git_cl.checkout, 'GitCheckout', GitCheckoutMock) self.mock(git_cl.checkout, 'GitCheckout', GitCheckoutMock)
GitCheckoutMock.reset() GitCheckoutMock.reset()
self.mock(git_cl.upload, 'RealMain', self.fail)
self.mock(git_cl.watchlists, 'Watchlists', WatchlistsMock) self.mock(git_cl.watchlists, 'Watchlists', WatchlistsMock)
self.mock(git_cl.auth, 'get_authenticator_for_host', AuthenticatorMock) self.mock(git_cl.auth, 'get_authenticator_for_host', AuthenticatorMock)
self.mock(git_cl.gerrit_util, 'GetChangeDetail', self.mock(git_cl.gerrit_util, 'GetChangeDetail',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment