Merge pull request #905 from tanjunchen/fix-up-grammar

Fix up grammar
This commit is contained in:
Justin Cappos 2019-08-30 11:18:47 -04:00 committed by GitHub
commit 8b615698ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -93,7 +93,7 @@ class ThreadingHTTPServer(ThreadingMixIn, HTTPServer):
daemon_threads = True
def handle_error(self, request, client_address):
# surpress socket/ssl related errors
# suppress socket/ssl related errors
cls, e = sys.exc_info()[:2]
if cls is socket.error or cls is ssl.SSLError:
pass
@ -115,7 +115,7 @@ def __init__(self, *args, **kwargs):
BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
def log_error(self, format, *args):
# surpress "Request timed out: timeout('timed out',)"
# suppress "Request timed out: timeout('timed out',)"
if isinstance(args[0], socket.timeout):
return

View file

@ -918,7 +918,7 @@ def test_4_refresh(self):
self.repository_updater.refresh()
# Second, verify that expired root metadata is not updated if
# 'unsafely_update_root_if_necessary' is explictly set to 'False'.
# 'unsafely_update_root_if_necessary' is explicitly set to 'False'.
expired_date = '1960-01-01T12:00:00Z'
self.repository_updater.metadata['current']['root']['expires'] = expired_date
self.assertRaises(tuf.exceptions.ExpiredMetadataError,
@ -1653,7 +1653,7 @@ def test_10__targets_of_role(self):
def test_10__preorder_depth_first_walk(self):
# Test that infinit loop is prevented if the target file is not found and
# Test that infinite loop is prevented if the target file is not found and
# the max number of delegations is reached.
valid_max_number_of_delegations = tuf.settings.MAX_NUMBER_OF_DELEGATIONS
tuf.settings.MAX_NUMBER_OF_DELEGATIONS = 0