diff options
author | Bradley Laney <bradley.laney@gmail.com> | 2018-07-10 09:46:44 (GMT) |
---|---|---|
committer | Tal Einat <taleinat+github@gmail.com> | 2018-07-10 09:46:44 (GMT) |
commit | 6b490b5db40fc29588e8e6cc23bb89c4fed74ad5 (patch) | |
tree | 4062fc0a8295473fe7686dfbb32579546e09725a /Lib/test/test_urllib2_localnet.py | |
parent | 5ac9e6eee5ed18172d70d28cf438df0be4e3b83d (diff) | |
download | cpython-6b490b5db40fc29588e8e6cc23bb89c4fed74ad5.zip cpython-6b490b5db40fc29588e8e6cc23bb89c4fed74ad5.tar.gz cpython-6b490b5db40fc29588e8e6cc23bb89c4fed74ad5.tar.bz2 |
bpo-34031: fix incorrect usage of self.fail in two tests (GH-8091)
Contributed by Bradley Laney.
Diffstat (limited to 'Lib/test/test_urllib2_localnet.py')
-rw-r--r-- | Lib/test/test_urllib2_localnet.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2_localnet.py b/Lib/test/test_urllib2_localnet.py index 52c897a..77dec0c 100644 --- a/Lib/test/test_urllib2_localnet.py +++ b/Lib/test/test_urllib2_localnet.py @@ -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() |