diff options
author | Bob Haarman <inglorion@chromium.org> | 2020-12-15 19:28:45 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-16 23:14:43 +0000 |
commit | bcda4751a23fe56615c7ae8b8bb9bbc7a45fce32 (patch) | |
tree | 5b2f413cf3692c1e43701ea3a9229d6689b0d17b /rust_tools/rust_uprev_test.py | |
parent | 2d837f0b382ae9fbec64607392942aac68437a4d (diff) | |
download | toolchain-utils-bcda4751a23fe56615c7ae8b8bb9bbc7a45fce32.tar.gz |
rust_uprev: mark test_success_with_template mock_find_ebuild unused
Pre-submit checks complained that the mock_find_ebuild parameter to
test_success_with_template is unused. This change avoids the warning
by prefixing the paramter name with an underscore to indicate that
it is unused.
BUG=None
TEST=python3 ./rust_tools/rust_uprev_test.py
Change-Id: Ieadd3854970a1662a74159fd9e492d6ee2f5f963
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2593513
Tested-by: Bob Haarman <inglorion@chromium.org>
Reviewed-by: Tiancong Wang <tcwang@google.com>
Commit-Queue: Bob Haarman <inglorion@chromium.org>
Diffstat (limited to 'rust_tools/rust_uprev_test.py')
-rwxr-xr-x | rust_tools/rust_uprev_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust_tools/rust_uprev_test.py b/rust_tools/rust_uprev_test.py index fc506004..0de785ea 100755 --- a/rust_tools/rust_uprev_test.py +++ b/rust_tools/rust_uprev_test.py @@ -57,7 +57,7 @@ class PrepareUprevTest(unittest.TestCase): 'find_ebuild_for_rust_version', return_value='/path/to/ebuild') @mock.patch.object(rust_uprev, 'get_command_output') - def test_success_with_template(self, mock_command, mock_find_ebuild): + def test_success_with_template(self, mock_command, _mock_find_ebuild): expected = (self.version_old, '/path/to/ebuild') actual = rust_uprev.prepare_uprev( rust_version=self.version_new, template=self.version_old) |