diff --git a/tests/proxy_server.py b/tests/proxy_server.py index 80be450b..3c76043c 100644 --- a/tests/proxy_server.py +++ b/tests/proxy_server.py @@ -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 diff --git a/tests/test_updater.py b/tests/test_updater.py index f7985356..56ee9fa1 100644 --- a/tests/test_updater.py +++ b/tests/test_updater.py @@ -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