fix: don't print raw client address
Python Lint CI / ty (push) Successful in 55s
Python Lint CI / ruff-format-check (push) Successful in 1m0s
Python Lint CI / ruff (push) Successful in 1m2s
Docker CI / docker-build (push) Has been cancelled
Python Test CI / coverage (push) Has been cancelled

This commit is contained in:
2026-05-04 22:51:55 +02:00
parent 658174518a
commit 9aa84cc2c3
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -1268,6 +1268,7 @@ class TestUpgradeHandler(BaseHandlerTestCase):
handler.headers = collections.defaultdict(lambda: None, headers) # ty:ignore[invalid-assignment]
handler.rfile = rfile if rfile is not None else io.BytesIO()
handler.wfile = io.BytesIO()
handler.client_address = ("127.0.0.1", 12345)
handler.logger = unittest.mock.Mock(logging.Logger)
handler.data_dir = self.data_dir
return handler