mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-34031: fix incorrect usage of self.fail in two tests (GH-8091)
Contributed by Bradley Laney.
This commit is contained in:
parent
5ac9e6eee5
commit
6b490b5db4
2 changed files with 2 additions and 3 deletions
|
@ -306,7 +306,7 @@ class BasicAuthTests(unittest.TestCase):
|
|||
try:
|
||||
self.assertTrue(urllib.request.urlopen(self.server_url))
|
||||
except urllib.error.HTTPError:
|
||||
self.fail("Basic auth failed for the url: %s", self.server_url)
|
||||
self.fail("Basic auth failed for the url: %s" % self.server_url)
|
||||
|
||||
def test_basic_auth_httperror(self):
|
||||
ah = urllib.request.HTTPBasicAuthHandler()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue