mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
commit
8b615698ea
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue