1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Fix new lint errors

This commit is contained in:
Paul Moore 2023-06-05 14:32:44 +01:00
parent 80cb6f443f
commit 9824a426d4
2 changed files with 6 additions and 2 deletions

View file

@ -514,7 +514,9 @@ class MultiDomainBasicAuth(AuthBase):
# Consume content and release the original connection to allow our new
# request to reuse the same one.
resp.content
# The result of the assignment isn't used, it's just needed to consume
# the content.
_ = resp.content
resp.raw.release_conn()
# Add our new username and password to the request

View file

@ -684,7 +684,9 @@ class PipTestEnvironment(TestFileEnvironment):
# Pass expect_stderr=True to allow any stderr. We do this because
# we do our checking of stderr further on in check_stderr().
kw["expect_stderr"] = True
result = super().run(cwd=cwd, *args, **kw)
# Ignore linter check
# B026 Star-arg unpacking after a keyword argument is strongly discouraged
result = super().run(cwd=cwd, *args, **kw) # noqa
if expect_error and not allow_error:
if result.returncode == 0: